diff --git a/src/xterm.js b/src/xterm.js index 0229df90..6204d135 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -208,7 +208,8 @@ function Terminal(options) { this.inputHandler = new InputHandler(this); this.parser = new Parser(this.inputHandler, this); - this.renderer = null; + // Reuse renderer if the Terminal is being recreated via a Terminal.reset call. + this.renderer = this.renderer || null; // user input states this.writeBuffer = [];