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
  • Loading branch information
colinta committed Apr 25, 2024
1 parent ddc417b commit f77bc14
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 @@ -1619,7 +1619,7 @@ export let sys: System = (() => {
setTimeout,
clearTimeout,
clearScreen: () => {
process.stdout.write("\x1Bc");
process.stdout.write("\x1B[2J\x1B[3J\x1BH\x1B[0f");
},
setBlocking: () => {
const handle = (process.stdout as any)?._handle as { setBlocking?: (value: boolean) => void; };
Expand Down

0 comments on commit f77bc14

Please sign in to comment.