#:suggester shows a suggestion after the input, dimmed, as fish does. Right,
C-f, End and C-e at the end accept it; M-f, C-Right and M-Right one word.
#:command-key? hands keys to the caller as (LineKey key input), with the
input erased. line-read and simulate-line take #:initial.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>