test-case: htop renders and exits via single key #18

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

Steps

  1. cd ~/src/aish && luajit main.lua
  2. $htop
  3. Watch the screen update for a few seconds — CPU/memory bars should refresh.
  4. Press q (or F10) to quit.

Expected

  • htop renders full-screen with colors, columns, and live-updating bars.
  • Quit happens on a single keypress.
  • aish prompt returns with ─── exit 0 ───.

What this exercises

PTY with full-screen alternate-buffer + frequent screen updates. The volume of master→stdout traffic stresses the multiplex loop in executor.lua.

Likely failure modes

  • htop shows static (no refresh) → master read loop blocked, or output buffered.
  • Garbled colors after quit → ANSI state escaped from the child PTY.
## Steps 1. `cd ~/src/aish && luajit main.lua` 2. `$htop` 3. Watch the screen update for a few seconds — CPU/memory bars should refresh. 4. Press **q** (or F10) to quit. ## Expected - htop renders full-screen with colors, columns, and live-updating bars. - Quit happens on a single keypress. - aish prompt returns with `─── exit 0 ───`. ## What this exercises PTY with full-screen alternate-buffer + frequent screen updates. The volume of master→stdout traffic stresses the multiplex loop in `executor.lua`. ## Likely failure modes - htop shows static (no refresh) → master read loop blocked, or output buffered. - Garbled colors after quit → ANSI state escaped from the child PTY.
claude-noether added the test-case label 2026-05-10 21:38:00 +00:00
Owner

Succesful

Succesful
Sign in to join this conversation.