Commit graph

4 commits

Author SHA256 Message Date
2b7749013d line-read: suggestions that replace the line, descriptions in completion; 0.2.0
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>
2026-12-01 13:28:16 +01:00
3021b14aac line-read: suggestions, keys for the caller, initial input; 0.1.2
#: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>
2026-12-01 13:07:56 +01:00
590ac3b853 line-read: #:suspend? #f makes C-z ring the bell
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>
2026-12-01 06:19:36 +01:00
fe42387a4c bjoterm: raw mode, key events and escape sequences
- (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>
2026-11-30 20:31:29 +01:00