clear screen text buffer on term switch.
This commit is contained in:
parent
607dc29dbb
commit
19f61aba7f
|
@ -265,6 +265,7 @@ Screen.prototype.__defineSetter__('terminal', function(terminal) {
|
||||||
Screen.prototype.setTerminal = function(terminal) {
|
Screen.prototype.setTerminal = function(terminal) {
|
||||||
var entered = !!this.program.isAlt;
|
var entered = !!this.program.isAlt;
|
||||||
if (entered) {
|
if (entered) {
|
||||||
|
this._buf = '';
|
||||||
this.program._buf = '';
|
this.program._buf = '';
|
||||||
this.leave();
|
this.leave();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue