A little toy for scrolling text.
Project description
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
- does not detect term-resize
- no colors
Changes
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
Built Distribution
File details
Details for the file scrolltext-0.0.8.tar.gz
.
File metadata
- Download URL: scrolltext-0.0.8.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed0a7cc7ed2b5ff08bb8d9ae275141cab85432d449aca2de346a8439c9ce05d6 |
|
MD5 | 09b7248a20092720c84dbe9503b66ef3 |
|
BLAKE2b-256 | 7e692b65db9d7115308ff4e7a58806b699f30fec1f186b22ca4b57dd2d79b4d9 |
File details
Details for the file scrolltext-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: scrolltext-0.0.8-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3453eacbc4b896b173e0f0bca14cca1d601666f8be3c622b12987fdca88b38a6 |
|
MD5 | 28e400363cdb1a8e2ca79367a55ad809 |
|
BLAKE2b-256 | 5354f4e6251c6b59266086c3aec9c537bd5e5dba61a9d9222aebfabfe2188689 |