Discard keys typed mid-run (wave 3, F6)

run-and-show prints its :running frame (bold Checking exercises/<dir>/<name>.lisp ...) before spawning the subprocess, so the screen stays alive while the pipe is silent. When the run returns, keys queued while it ran are discarded; keys already queued when the run started survive, so scripted sessions still work. This fixes the stray-n auto-advance after a save.

The reader thread now sets an open-p flag at EOF; prompt-line reads
one answer line through the input queue and returns NIL at EOF. A
50ms grace at watch start lets piped stdin land before the first
frame. README notes that keys typed mid-run are ignored.
This commit is contained in:
venomade committed 2026-11-22 09:47:41 +00:00
1 parent 4c6009e2e4
commit b62d32d995
2 files changed
+56 -21

No files matched your search

+3
View File
@@ -67,6 +67,9 @@ Keys in watch mode (each key is a line: type it, then press ENTER):
| l | list all exercises |
| q | save progress and quit |
Keys typed while a check is running are ignored; press the key
again once it finishes.
Really stuck? `solutions/` mirrors `exercises/` with every exercise
solved.