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:
Colin T.A. Gray 2024-07-22 13:30:17 -07:00 committed by GitHub
parent 5929c96378
commit 3f2a9e4ee0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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; };