mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Use more universal ANSI sequence for 'clear screen and clear buffer' (#57701)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
parent
5929c96378
commit
3f2a9e4ee0
@ -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; };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user