A suggester returns a Suggestion: the text shown and the line it makes,
which can differ from the input in case or be another line. A Completion
has descriptions, shown beside the candidates on the second Tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#: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>
A shell must not stop itself at its prompt. With #:suspend? #f, C-z
rings the bell instead of stopping the program. The default is #t, as
before. The manifest comment no longer names glue/Keys.cs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- (bjoterm terminal): terminal-open, with-raw-mode, terminal-size,
terminal-suspend, read-event and read-event/timeout, and escape
sequences for the cursor, clearing, the alternate screen, bracketed
paste and styles. Linux only.
- glue/Tty.cs: termios, poll on fd 0, SIGWINCH, SIGCONT, SIGTSTP, and
restoring the modes at SIGTERM, SIGHUP, SIGQUIT and process exit.
- glue/Keys.cs: the decoder of CSI and SS3 keys with modifiers, Alt,
UTF-8 and bracketed paste.
- Tests: the decoder from bytes, and raw mode on a pseudo-terminal under
script. plan.org has the decisions and the phases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>