Skip to content

Commit 3f2a9e4

Browse files
colintajakebailey
andauthored
Use more universal ANSI sequence for 'clear screen and clear buffer' (#57701)
Co-authored-by: Jake Bailey <[email protected]>
1 parent 5929c96 commit 3f2a9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ export let sys: System = (() => {
16041604
setTimeout,
16051605
clearTimeout,
16061606
clearScreen: () => {
1607-
process.stdout.write("\x1Bc");
1607+
process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
16081608
},
16091609
setBlocking: () => {
16101610
const handle = (process.stdout as any)?._handle as { setBlocking?: (value: boolean) => void; };

0 commit comments

Comments
 (0)