- read-event, line-read and the editor loop work in both colours. The
leaf is read-bytes, a defbjouble: a bjoroutine awaits the glue's read,
other code blocks. with-raw-mode takes a body of either colour.
- Cancelling the scope of a waiting line-read ends it and restores the
terminal modes. The glue runs reads one at a time.
- The key decoder is (bjoterm keys), and widths, prompt escapes, search
and common prefixes are (bjoterm text). Clusters and categories come
from (std unicode grapheme) and (std unicode chars).
- Keys.cs and Text.cs are removed. The glue is termios, signals, poll
and read.
- New tests: tests/async.bjo and tests/text.bjo.
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>