attempt to use both alternate screen buffer sequences.

This commit is contained in:
Christopher Jeffrey 2015-02-01 08:51:56 -08:00
parent e9b3bdac34
commit c243415049
1 changed files with 2 additions and 0 deletions

View File

@ -2683,6 +2683,7 @@ Program.prototype.alternateBuffer = function() {
this.isAlt = true;
if (this.tput) return this.put.smcup();
if (this.term('vt') || this.term('linux')) return;
this.setMode('?47');
return this.setMode('?1049');
};
@ -2791,6 +2792,7 @@ Program.prototype.rmcup =
Program.prototype.normalBuffer = function() {
this.isAlt = false;
if (this.tput) return this.put.rmcup();
this.resetMode('?47');
return this.resetMode('?1049');
};