From 19f61aba7f2513f17c31fdacdf1d9ee22fb68867 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 11 Aug 2015 03:25:50 -0700 Subject: [PATCH] clear screen text buffer on term switch. --- lib/widgets/screen.js | 1 + 1 file changed, 1 insertion(+) 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(); }