diff options
author | Case Duckworth | 2023-05-31 16:52:12 -0500 |
---|---|---|
committer | Case Duckworth | 2023-05-31 16:52:12 -0500 |
commit | dbe9d6f35e71786efd193daaab39f4e791317e74 (patch) | |
tree | b9ac131cfd92461a209295bec8f1c2b41d244fdb /readme | |
parent | Fix linebreaks (diff) | |
download | yolk-dbe9d6f35e71786efd193daaab39f4e791317e74.tar.gz yolk-dbe9d6f35e71786efd193daaab39f4e791317e74.zip |
Add (yolk attrs)
Diffstat (limited to 'readme')
-rw-r--r-- | readme | 28 |
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 | |||
49 | WRAPPER-PROC-NAME that will call PARAM-NAME with ARGS ... . The user can change | 49 | WRAPPER-PROC-NAME that will call PARAM-NAME with ARGS ... . The user can change |
50 | which procedure to call by calling (PARAM-NAME new-proc). | 50 | which procedure to call by calling (PARAM-NAME new-proc). |
51 | 51 | ||
52 | (yolk colors) --- NOT FINISHED | 52 | (yolk attrs) --- text attributes |
53 | 53 | ||
54 | There's a bug in this library. | 54 | -- (prop? x) |
55 | |||
56 | Returns X if X is a text property (non-color); otherwise returns #f. | ||
57 | |||
58 | -- (color? x) | ||
59 | |||
60 | Returns X if X is a terminal color name; otherwise returns #f. | ||
61 | |||
62 | -- (attrs as) | ||
63 | |||
64 | AS 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 | |||
73 | Anything 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 | ||
134 | Enable or disable the "alternate buffer." | 153 | Enable or disable the "alternate buffer." |
135 | 154 | ||
155 | REFERENCES. | ||
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") | ||