about summary refs log tree commit diff stats
path: root/readme
diff options
context:
space:
mode:
Diffstat (limited to 'readme')
-rw-r--r--readme28
1 files changed, 26 insertions, 2 deletions
diff --git a/readme b/readme index 5eaa9f6..baa3bbc 100644 --- a/readme +++ b/readme
@@ -49,9 +49,28 @@ macro defines a parameter named PARAM-NAME and a procedure named
49WRAPPER-PROC-NAME that will call PARAM-NAME with ARGS ... . The user can change 49WRAPPER-PROC-NAME that will call PARAM-NAME with ARGS ... . The user can change
50which procedure to call by calling (PARAM-NAME new-proc). 50which procedure to call by calling (PARAM-NAME new-proc).
51 51
52(yolk colors) --- NOT FINISHED 52(yolk attrs) --- text attributes
53 53
54There's a bug in this library. 54-- (prop? x)
55
56Returns X if X is a text property (non-color); otherwise returns #f.
57
58-- (color? x)
59
60Returns X if X is a terminal color name; otherwise returns #f.
61
62-- (attrs as)
63
64AS is a list of attributes, each of one of the following forms:
65
66- [number] -- returned directly
67- [color], (fg [color]), (fg . [color]) -- set the foreground to [color]
68- (bg [color]), (bg . [color]) -- set the background to [color]
69- [property], (set [property]), (set . [property]) -- turn [property] on
70- (reset [property]), (reset . [property]) -- turn [property] off
71- 'reset -- reset the text attributes
72
73Anything else is an error. `attrs' returns a string ready to be displayed on the terminal.
55 74
56(yolk cursor) --- cursor movement 75(yolk cursor) --- cursor movement
57 76
@@ -133,6 +152,11 @@ Save or restore the screen's state.
133 152
134Enable or disable the "alternate buffer." 153Enable or disable the "alternate buffer."
135 154
155REFERENCES.
156
136[1]: http://wiki.call-cc.org/eggref/5/ansi-escape-sequences 157[1]: http://wiki.call-cc.org/eggref/5/ansi-escape-sequences
137[2]: https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797 158[2]: https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
138[3]: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html 159[3]: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
160
161- https://xn--rpa.cc/irl/term.html
162- (man "console_codes")