Send a redraw
This commit is contained in:
parent
fd9ec777a3
commit
d5194ede9e
1 changed files with 2 additions and 1 deletions
|
|
@ -149,9 +149,10 @@ async function main() {
|
||||||
if (pty) {
|
if (pty) {
|
||||||
// Resume child process
|
// Resume child process
|
||||||
process.kill(pty.pid, "SIGCONT");
|
process.kill(pty.pid, "SIGCONT");
|
||||||
// Trigger PTY redraw by sending resize
|
// Trigger PTY redraw by sending resize + Ctrl+L
|
||||||
const { cols, rows } = getTerminalSize();
|
const { cols, rows } = getTerminalSize();
|
||||||
pty.resize(cols, rows);
|
pty.resize(cols, rows);
|
||||||
|
pty.write("\x0c"); // Ctrl+L forces TUI redraw
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue