line-read: draw input taller than the screen in part
- input-window chooses the rows to draw: the window stays while the cursor is in it and moves the least it must. A marker row at each end with hidden rows gives their count. - The cursor can always go up to the first row drawn, so redrawing no longer leaves copies of the input in the scrollback. - The accepted input is drawn whole. - layout returns the text of each row. - New tests: input-window in tests/line.bjo, and tests/tall.bjo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
95d747cf70
commit
566008e264
5 changed files with 181 additions and 25 deletions
11
plan.org
11
plan.org
|
|
@ -51,8 +51,15 @@ is in raw mode, and gives it back as it found it.
|
|||
of the input, a wrong #t erases output above it.
|
||||
- Several resizes before one redraw give the same result as one, as
|
||||
the terminal joins its own wraps again.
|
||||
- Not done: input taller than the screen after a reflow. The rows above
|
||||
the top are in the scrollback, and the cursor cannot go up to them.
|
||||
- A reflow that makes the drawn rows taller than the screen pushes the
|
||||
first of them into the scrollback, where the cursor cannot go. They
|
||||
stay there once, as a copy; the next drawing fits the screen.
|
||||
- Tall input (2026-11-30): input taller than the screen is drawn in
|
||||
part, so that the cursor can always go up to its first row.
|
||||
~input-window~ chooses the rows: the window stays while the cursor is in
|
||||
it, and moves the least it must. A row at each end with hidden rows
|
||||
says how many ("↑ 3 more rows"). The accepted input is drawn whole, so
|
||||
the scrollback has all of it.
|
||||
- Tested with ~script~, which does not reflow: the test checks the
|
||||
escape sequences. Not yet tried on a terminal that reflows.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue