Root cause: in raw mode, bare LF moves cursor down without returning to
column 0. Multi-line prompts and Enter key sent bare LF, causing cursor
to drift right. Fix: replace all LF with CR+LF in prompt printing, Enter
handler, and redraw code. Also keep raw mode across continuation calls.