Skip to content

Commit

Permalink
Use more universal ANSI sequence for 'clear screen and clear buffer' (#…
Browse files Browse the repository at this point in the history
…57701)

Co-authored-by: Jake Bailey <[email protected]>
  • Loading branch information
colinta and jakebailey authored Jul 22, 2024
1 parent 5929c96 commit 3f2a9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ export let sys: System = (() => {
setTimeout,
clearTimeout,
clearScreen: () => {
process.stdout.write("\x1Bc");
process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
},
setBlocking: () => {
const handle = (process.stdout as any)?._handle as { setBlocking?: (value: boolean) => void; };
Expand Down

0 comments on commit 3f2a9e4

Please sign in to comment.