From 25fcf3a6a4ec6abaeeaf17a1f6681e4c025483af Mon Sep 17 00:00:00 2001 From: Vitaly Domnikov Date: Thu, 15 Dec 2016 17:48:47 -0800 Subject: [PATCH] Update terminal clear method (#1239) --- lib/components/term.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/term.js b/lib/components/term.js index 53496b1a..55f1cfb8 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -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'); } }