mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
#1521: now saving and restoring characters attributes when using ANSI escape sequences 'ESC 7' (DECSC) and 'ESC 8' (DECRC)
This commit is contained in:
@@ -1822,6 +1822,7 @@ export class InputHandler implements IInputHandler {
|
||||
public saveCursor(params: number[]): void {
|
||||
this._terminal.buffer.savedX = this._terminal.buffer.x;
|
||||
this._terminal.buffer.savedY = this._terminal.buffer.y;
|
||||
this._terminal.savedCurAttr = this._terminal.curAttr;
|
||||
}
|
||||
|
||||
|
||||
@@ -1833,6 +1834,7 @@ export class InputHandler implements IInputHandler {
|
||||
public restoreCursor(params: number[]): void {
|
||||
this._terminal.buffer.x = this._terminal.buffer.savedX || 0;
|
||||
this._terminal.buffer.y = this._terminal.buffer.savedY || 0;
|
||||
this._terminal.curAttr = this._terminal.savedCurAttr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user