Files
ROT-8-viz/include
starcells 5a25c328d0 Console below the frame: prompt and output echo, records inside
Two things were wrong with the first attempt:

  * a tape that starts with INP never drew its opening frame, because the
    prompt ran before the hook and there was no iterator to render with.  The
    input callback now receives the iterator, so it can paint the frame and
    then ask -- the initial memory state is visible again.
  * putting the prompt inside the frame left the cursor at the end of the
    frame, which reads badly.  The records stay inside:

        | in (1) 13   |
        | out (1) 13  |

    and the prompt moved below the window, like a shell prompt under it:

        output> 13
        input> 13

    output> grows with every OUT; input> is the prompt while INP waits and
    becomes the value just given afterwards.  The cursor sits right after
    'input> ', outside the frame, so typing does not fight the drawing.

Tapes that never read input get none of the lines outside the frame, and the
existing tapes look exactly as before.

Checked: echo.rot8 first frame now shows step 0 / pc 0000 / op INP with the
memory grid, then input> below; --input 42 still prints 42; --dump and the
piped live run are unchanged.
2026-11-06 20:47:25 +08:00
..