Send a redraw

This commit is contained in:
Jared Miller 2026-01-30 07:44:53 -05:00
parent fd9ec777a3
commit d5194ede9e
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -149,9 +149,10 @@ async function main() {
if (pty) {
// Resume child process
process.kill(pty.pid, "SIGCONT");
// Trigger PTY redraw by sending resize
// Trigger PTY redraw by sending resize + Ctrl+L
const { cols, rows } = getTerminalSize();
pty.resize(cols, rows);
pty.write("\x0c"); // Ctrl+L forces TUI redraw
}
});