summary refs log tree commit diff
path: root/v2/screen.ts
diff options
context:
space:
mode:
Diffstat (limited to 'v2/screen.ts')
-rw-r--r--v2/screen.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/v2/screen.ts b/v2/screen.ts
index 7a1e265..4c399e8 100644
--- a/v2/screen.ts
+++ b/v2/screen.ts
@@ -74,6 +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
         this.elements.forEach(element => {
             element.render()
         });