mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-18 06:51:27 +00:00
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) {
|
||||
var entered = !!this.program.isAlt;
|
||||
if (entered) {
|
||||
this._buf = '';
|
||||
this.program._buf = '';
|
||||
this.leave();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user