Skip to main content

A little toy for scrolling text.

Project description

Python application

python-scrolltext

Plain Terminal version

SCROLL_TEXT="Hello, world." scrolltext

You can select the line via SCROLL_LINE variable. Negative values are counting from bottom to top, e.g. the following selects the 2nd last line in the current terminal:

SCROLL_TEXT="Hello, world." SCROLL_LINE=-2 scrolltext

Curses Version

SCROLL_TEXT="Hello, world." scrolltext cursestext

In addition to SCROLL_TEXT and SCROLL_LINE variables, the submodule cursestext understands the variables VERBOSE and SCROLL_BOX.

Setting VERBOSE=1 will create a logfile: 'cursesscroller.log' in the current directory.

Here is an example:

SCROLL_BOX=1 SCROLL_LINE=-1 VERBOSE=1 scrolltext cursestext

The box is enabled by default.

In order to not draw the box, you can switch it off by defining the variable SCROLL_TEXT with an empty value or 0, e.g. use

SCROLL_BOX= SCROLL_LINE=-1 scrolltext cursestext

or

SCROLL_BOX=0 SCROLL_LINE=-1 scrolltext cursestext

Scroll right-to-left reading text

Using SCROLL_DIRECTION=1 makes the text start scrolling from left-side of the terminal. This is used for right-to-left writing languages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrolltext-0.0.7.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

scrolltext-0.0.7-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file scrolltext-0.0.7.tar.gz.

File metadata

  • Download URL: scrolltext-0.0.7.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for scrolltext-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2fbbed88ea7776f8c608e39e245407611cedd20a2444bfb7b4cec6b0d8ac2653
MD5 c131100936301812b2767caeeaeb7dd8
BLAKE2b-256 580a22fb13de6d699845e8b2cdc9e66ac583ff1c95008bab2f47a925b225642b

See more details on using hashes here.

File details

Details for the file scrolltext-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: scrolltext-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for scrolltext-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 666d6e813b69f0e2de07e8284fc5ca6dbf86b116c3fcde495102dac5d90722d6
MD5 0e90a80b76c372c2b8f07fdf7e851c21
BLAKE2b-256 e502e1dcfc67cfcd1e46368e96b1d54508a8b51ee5796fb2dfa01ec1125bd32f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page