Skip to content

Commit bce022a

Browse files
committed
Added some tech-documentation.
1 parent 9b37b6f commit bce022a

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

README.technical-documentation.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
### Options for cursestext
2+
3+
NOTE: VERBOSE is only available for builds from the 'devel' branch
4+
5+
In addition to `SCROLL_TEXT` and `SCROLL_LINE` variables, the submodule cursestext
6+
understands the variables `VERBOSE` and `SCROLL_BOX`.
7+
8+
Setting `VERBOSE=1` will create a logfile: 'cursesscroller.log' in the
9+
current directory.
10+
11+
Here is an example:
12+
13+
SCROLL_BOX=1 SCROLL_LINE=-1 VERBOSE=1 scrolltext cursestext
14+
15+
The box is enabled by default.
16+
17+
In order to not draw the box, you can switch it off by defining the variable
18+
`SCROLL_TEXT` with an empty value or 0, e.g. use
19+
20+
SCROLL_BOX= SCROLL_LINE=-1 scrolltext cursestext
21+
22+
or
23+
24+
SCROLL_BOX=0 SCROLL_LINE=-1 scrolltext cursestext
25+
26+
27+
### Options for both interfaces
28+
29+
You can select the line via `SCROLL_LINE` variable. Negative values are counting
30+
from bottom to top, e.g. the following selects the 2nd last line in the current
31+
terminal:
32+
33+
SCROLL_TEXT="Hello, world." SCROLL_LINE=-2 scrolltext
34+
35+
36+
### Using a different scrolling speed
37+
38+
The scrolling speed can be altered by setting the environment variable `SCROLL_SPEED`
39+
There are 10 different speeds available. These can be selected by choosing a
40+
number between 0 and 9.
41+
42+
Slow scrolling speed (default, if not set)
43+
44+
SCROLL_SPEED=0 scrolltext
45+
46+
47+
Fastest scrolling speed.
48+
49+
SCROLL_SPEED=10 scrolltext
50+
51+
52+
## Bugs and quirks
53+
54+
- attempts to detect term-resize, and clumsily adjusts some things
55+
- documentation (even in this readme) is vague
56+
57+
58+
## Changes
59+
60+
### v0.0.10
61+
62+
- added config option for color (only linescroller)
63+
64+
### v0.0.9
65+
66+
- attempt to handle term resizes
67+
- added config-option: endless (see newly generated config-file)
68+
- removed logging from main branch (you may find it on the devel branch)
69+
70+
### v0.0.8
71+
72+
- doc-comments have never been generated, nor are those validated. (TODO)
73+
- renamed log-file to "scrolltext.log"
74+
- uses config file "scrolltextrc"
75+
\*NIX uses "~/.config/scrolltextrc", windows uses "scrolltextrc" in current directory

0 commit comments

Comments
 (0)