#: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>
- Each row of the input ends with a line break, so only a narrowing
terminal that reflows moves the cursor. The layout keeps the widths of
the items on each row, and cursor-row-after-reflow computes the
cursor's row after the terminal wraps each row again.
- terminal-reflows? guesses from the environment. An unknown terminal
counts as not reflowing. #:reflow? of make-line-editor overrides it.
- New tests: the model in tests/line.bjo, and tests/reflow.bjo, which
narrows the terminal with stty under script.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>