From 3f2a9e4ee09d7ef2d4419d63eb216072b634abbb Mon Sep 17 00:00:00 2001 From: "Colin T.A. Gray" Date: Mon, 22 Jul 2024 13:30:17 -0700 Subject: [PATCH] Use more universal ANSI sequence for 'clear screen and clear buffer' (#57701) Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com> --- src/compiler/sys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 3aefbdf9939..a279719aeb2 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -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; };