Skip to main content

A little toy for scrolling text.

Project description

Python application PyPI version

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.

Using a different scrolling speed

The scrolling speed can be altered by setting the environment variable SCROLL_SPEED There are 10 different speeds available. These can be selected by choosing a number between 0 and 9.

Slow scrolling speed (default, if not set)

SCROLL_SPEED=0 scrolltext

Fastest scrolling speed.

SCROLL_SPEED=10 scrolltext

Bugs and quirks

  • attempts to detect term-resize, and clumsily adjusts some things
  • no colors

Changes

v0.0.9

  • attempt to handle term resizes
  • added config-option: endless (see newly generated config-file)
  • removed logging from main branch (you may find it on the devel branch)

v0.0.8

  • doc-comments have never been generated, nor are those validated. (TODO)
  • renamed log-file to "scrolltext.log"
  • uses config file "scrolltextrc" *NIX uses "~/.config/scrolltextrc", windows uses "scrolltextrc" in current directory

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.9.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

scrolltext-0.0.9-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrolltext-0.0.9.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for scrolltext-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c81e617cce00ea2a13e58fe833a3a128a2b3156c99a698993eb4c7a7a3f8da4a
MD5 5d6ebb2732e7647ea82ba5b09b148a7c
BLAKE2b-256 4ffe35f97ed2605af04fcc48e2cfb31601b204221e2673bfb5c2ea13f33048c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scrolltext-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for scrolltext-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5e95c4699b287f55792ee4789197963b3a6d55346cd06f7a8296ea65ba57a8bf
MD5 e60c82aa8792736076f4e786a61d507a
BLAKE2b-256 fa54bfdedc6c87265c3ad56a57b7f34e96aee9f0b4fbdff5c1691e00be2db2af

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