MCPcopy Index your code
hub / github.com/xtermjs/xterm.js / saveCursor

Method saveCursor

src/common/InputHandler.ts:2898–2905  ·  view source on GitHub ↗

* CSI s * ESC 7 * Save cursor (ANSI.SYS). * * @vt: #P[TODO...] CSI SCOSC "Save Cursor" "CSI s" "Save cursor position, charmap and text attributes." * @vt: #Y ESC SC "Save Cursor" "ESC 7" "Save cursor position, charmap and text attributes."

(params?: IParams)

Source from the content-addressed store, hash-verified

2896 * @vt: #Y ESC SC "Save Cursor" "ESC 7" "Save cursor position, charmap and text attributes."
2897 */
2898 public saveCursor(params?: IParams): boolean {
2899 this._activeBuffer.savedX = this._activeBuffer.x;
2900 this._activeBuffer.savedY = this._activeBuffer.ybase + this._activeBuffer.y;
2901 this._activeBuffer.savedCurAttrData.fg = this._curAttrData.fg;
2902 this._activeBuffer.savedCurAttrData.bg = this._curAttrData.bg;
2903 this._activeBuffer.savedCharset = this._charsetService.charset;
2904 return true;
2905 }
2906
2907
2908 /**

Callers 2

constructorMethod · 0.95
setModePrivateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected