Commit graph

2 commits

Author SHA256 Message Date
5a8a441cbc line-read: #:notices writes lines above the input
line-read calls the function every 200 ms while it waits for a key. The
lines it returns are written above the input, which is drawn again below
them. For a shell's "[1] Done" lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:50:09 +01:00
6863503fa7 bjoterm: the line editor, (bjoterm line)
- line-read with the keys of Emacs and readline: moving by character,
  word and line, a kill buffer, history with C-r search, Tab completion
  through #:completer, and input of several lines with #:input-done?.
- Grapheme clusters and display widths in glue/Text.cs: the editor moves
  and deletes by cluster, and wraps lines by width.
- Each key is a pure step, so tests/line.bjo runs the keys without a
  terminal through simulate-line. tests/line-terminal.bjo runs line-read
  on a pseudo-terminal.
- History files, line-history-save and line-history-load!.
- examples/repl.bjo: a small REPL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:49:26 +01:00