Update terminal clear method (#1239)

This commit is contained in:
Vitaly Domnikov 2016-12-15 17:48:47 -08:00 committed by Guillermo Rauch
parent 38909e3f16
commit 25fcf3a6a4

View file

@ -159,7 +159,7 @@ export default class Term extends Component {
// running and we'd like to delete the whole screen.
// Move cursor to top
if (this.term.getCursorRow() !== 0) {
this.term.writeUTF8('\x1B[0;0H\x1B[2J');
this.write('\x1B[0;0H\x1B[2J');
}
}