aboutsummaryrefslogtreecommitdiffstats
path: root/src/cpu.c
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-07-16 11:25:43 +0200
committergbc dev <gbc@localhost>2026-07-16 11:25:43 +0200
commit283040a1a5356e774276ba8f6c7404483b81bc11 (patch)
tree846c6c51fde7b96bbbce13e268fa660062f75bdd /src/cpu.c
parentserial: deliver EOF (0x04) on stdin end for headless console (diff)
downloadsl0pboy-283040a1a5356e774276ba8f6c7404483b81bc11.tar.gz
sl0pboy-283040a1a5356e774276ba8f6c7404483b81bc11.tar.xz
sl0pboy-283040a1a5356e774276ba8f6c7404483b81bc11.zip
headless: interactive TTY mode (raw stdin) for driving a guest OS live
When stdin is a terminal, --headless now disables canonical mode + local echo so keystrokes reach the guest immediately and only the guest echoes (no doubled chars). Piped/redirected stdin is untouched (scripted input still works). Keep ISIG so Ctrl-C quits; restore termios on exit. VMIN=1 so a no-data non-blocking read is EAGAIN, not a 0-byte read the serial layer would misread as EOF.
Diffstat (limited to 'src/cpu.c')
0 files changed, 0 insertions, 0 deletions