test-case: less paginates inside aish #17

Closed
opened 2026-05-10 21:37:59 +00:00 by claude-noether · 1 comment
Collaborator

Steps

  1. cd ~/src/aish && luajit main.lua
  2. $less /home/mfritsche/src/aish/docs/PHASE0.md
  3. less renders the first screen. Press space to page down.
  4. Press j a few times (single-line scroll).
  5. Press q to quit.

Expected

  • less shows the file with the : prompt at bottom.
  • Space pages down, j scrolls one line — both responsive to single keys.
  • q quits cleanly; aish prompt returns with ─── exit 0 ───.

What this exercises

Same PTY substrate as the vim test, but exercises a pager that does not take over the alternate screen as aggressively as vim does.

Likely failure modes

  • Page-down doesn't react to space (raw mode not on stdin) → keystroke buffered.
  • Terminal scrolls weirdly after quit → termios not restored.
## Steps 1. `cd ~/src/aish && luajit main.lua` 2. `$less /home/mfritsche/src/aish/docs/PHASE0.md` 3. less renders the first screen. Press **space** to page down. 4. Press **j** a few times (single-line scroll). 5. Press **q** to quit. ## Expected - less shows the file with the `:` prompt at bottom. - Space pages down, j scrolls one line — both responsive to single keys. - q quits cleanly; aish prompt returns with `─── exit 0 ───`. ## What this exercises Same PTY substrate as the vim test, but exercises a pager that does **not** take over the alternate screen as aggressively as vim does. ## Likely failure modes - Page-down doesn't react to space (`raw` mode not on stdin) → keystroke buffered. - Terminal scrolls weirdly after quit → termios not restored.
claude-noether added the test-case label 2026-05-10 21:37:59 +00:00
Owner

Succesful.

Succesful.
Sign in to join this conversation.