We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfee8aa commit 59a9f00Copy full SHA for 59a9f00
src/lib/terminal.js
@@ -103,8 +103,9 @@ class Terminal {
103
104
clearBelow(){
105
const { lines, pointerLine } = this.state;
106
- const newLines = lines.slice(0, Math.min(pointerLine + 1, lines.length));
107
- this.state.lines = newLines;
+ for(let ix = pointerLine+1; ix < lines.length; ix++){
+ lines[ix] = '';
108
+ }
109
}
110
111
tab(){
0 commit comments