MCPcopy
hub / github.com/xtermjs/xterm.js / cursorCharAbsolute

Method cursorCharAbsolute

src/common/InputHandler.ts:987–990  ·  view source on GitHub ↗

* CSI Ps G * Cursor Character Absolute [column] (default = [row,1]) (CHA). * * @vt: #Y CSI CHA "Cursor Horizontal Absolute" "CSI Ps G" "Move cursor to `Ps`-th column of the active row (default=1)."

(params: IParams)

Source from the content-addressed store, hash-verified

985 * @vt: #Y CSI CHA "Cursor Horizontal Absolute" "CSI Ps G" "Move cursor to `Ps`-th column of the active row (default=1)."
986 */
987 public cursorCharAbsolute(params: IParams): boolean {
988 this._setCursor((params.params[0] || 1) - 1, this._activeBuffer.y);
989 return true;
990 }
991
992 /**
993 * CSI Ps ; Ps H

Callers 1

constructorMethod · 0.95

Calls 1

_setCursorMethod · 0.95

Tested by

no test coverage detected