Browse Source

Minor update to readme

master
sloum 5 months ago
parent
commit
0de5de2ccc
  1. 10
      README.md

10
README.md

@ -63,10 +63,14 @@ Every proc in the module evaluates to a string (ie. it does not display/write th
```
(load-mod "ansi")
(display (string-format "%v%v<---HELLO--->%v\n" (ansi-true-color-fg 200 50 50) (ansi-true-color-bg 255 255 255) (ansi-att-reset)))
(define writer (string-make-buf))
(write (ansi-true-color-fg 200 50 50) writer)
(write (ansi-true-color-bg 255 255 255) writer)
(write "Hello, color!" writer)
(write (ansi-att-reset) writer)
(display (read-all writer) "\n")
```
The above should output something along the lines of:
The above should output something red text on a white background.
<span style="color: rgb(200,50,50); background-color: white;">&lt---HELLO---&gt</span>

Loading…
Cancel
Save