Browse Source

Set console to clear on each run

ApisNecros 1 year ago
parent
commit
0a4003d853
1 changed files with 1 additions and 0 deletions
  1. 1 0
      starfish.js

+ 1 - 0
starfish.js

@@ -125,6 +125,7 @@ class CodeBox {
         this.pointer = {X: 0, Y: 0};
         this.curr_direction = this.directions.EAST;
         this.outputDOM.value = "";
+        console.clear();
 
         const cbRaw = this.codeBoxDOM.value;
         const rows = cbRaw.split("\n");