diff --git a/lib/widgets/screen.js b/lib/widgets/screen.js index c0bf9ef..c95ce1a 100644 --- a/lib/widgets/screen.js +++ b/lib/widgets/screen.js @@ -265,6 +265,7 @@ Screen.prototype.__defineSetter__('terminal', function(terminal) { Screen.prototype.setTerminal = function(terminal) { var entered = !!this.program.isAlt; if (entered) { + this._buf = ''; this.program._buf = ''; this.leave(); }