save/restore charset in DECSC/DECRC

This commit is contained in:
Jörg Breitbart
2019-07-08 02:42:02 +02:00
parent bc867bf12b
commit cb25e2d4e0
4 changed files with 12 additions and 3 deletions
+5
View File
@@ -1938,6 +1938,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._terminal.buffer.savedY = this._terminal.buffer.ybase + this._terminal.buffer.y;
this._terminal.buffer.savedCurAttrData.fg = this._terminal.curAttrData.fg;
this._terminal.buffer.savedCurAttrData.bg = this._terminal.curAttrData.bg;
this._terminal.buffer.savedCharset = this._terminal.charset;
}
@@ -1951,6 +1952,10 @@ export class InputHandler extends Disposable implements IInputHandler {
this._terminal.buffer.y = Math.max(this._terminal.buffer.savedY - this._terminal.buffer.ybase, 0);
this._terminal.curAttrData.fg = this._terminal.buffer.savedCurAttrData.fg;
this._terminal.curAttrData.bg = this._terminal.buffer.savedCurAttrData.bg;
this._terminal.charset = (this as any)._savedCharset;
if (this._terminal.buffer.savedCharset) {
this._terminal.charset = this._terminal.buffer.savedCharset;
}
this._restrictCursor();
}