9 Next Steps
- Headless preview: tui/char provides the same output API but draws to an in-memory character grid. char-frame reads it back as plain text, which is useful without a TTY. See cursor/examples/en/08-char-preview.rkt.
- Scrolling: scroll-region / scroll-up / scroll-down / line-insert / line-delete scroll whole lines.
- kitty backend: tui/kitty adds the kitty keyboard protocol and image output on top of tui. Start it with with-kitty; see cursor/examples/en/09-kitty.rkt.
- API reference: the package manual index.scrbl lists all functions and arguments; demo/ has more complete examples.
Task |
| Common APIs |
draw text |
| put-at put-string put-rgb-fg |
draw a frame |
| format-* put-format-bytes |
cursor |
| cursor-move put-at! current-cursor-row |
styles |
| style-define! put-styled format-styled |
input |
| read-event build-input loop-input/stop |
mouse/size |
| get-window-size #:mouse #:resize |