summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--v2/screen.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/v2/screen.ts b/v2/screen.ts
index 4c399e8..99cc5a2 100644
--- a/v2/screen.ts
+++ b/v2/screen.ts
@@ -74,7 +74,7 @@ export class Screen {
 
     render() {
         console.clear()
-        process.stdout.write("\e[2J") // use an ansi escape code to clear the screen if console.clear doesn't clear fully
+        process.stdout.write("\u001b[2J") // use an ansi escape code to clear the screen if console.clear doesn't clear fully
         this.elements.forEach(element => {
             element.render()
         });