clear screen text buffer on term switch.

This commit is contained in:
Christopher Jeffrey 2015-08-11 03:25:50 -07:00
parent 607dc29dbb
commit 19f61aba7f
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}