No description
Find a file
Linus Björnstam 95d747cf70 line-read: redraw correctly after a terminal reflows
- 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>
2026-11-30 21:24:16 +01:00
examples bjoterm: the line editor, (bjoterm line) 2026-11-30 20:49:26 +01:00
glue Async line-read, and the decoder and text handling in Bjolang 2026-11-30 21:05:59 +01:00
src line-read: redraw correctly after a terminal reflows 2026-11-30 21:24:16 +01:00
tests line-read: redraw correctly after a terminal reflows 2026-11-30 21:24:16 +01:00
.gitignore bjoterm: raw mode, key events and escape sequences 2026-11-30 20:31:29 +01:00
AGENTS.md line-read: redraw correctly after a terminal reflows 2026-11-30 21:24:16 +01:00
LICENSE bjoterm: raw mode, key events and escape sequences 2026-11-30 20:31:29 +01:00
manifest.bjodat bjoterm: raw mode, key events and escape sequences 2026-11-30 20:31:29 +01:00
packages.lock.json bjoterm: raw mode, key events and escape sequences 2026-11-30 20:31:29 +01:00
plan.org line-read: redraw correctly after a terminal reflows 2026-11-30 21:24:16 +01:00