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

Method updateCursorStyle

src/browser/CoreBrowserTerminal.ts:859–865  ·  view source on GitHub ↗

* Change the cursor style for different selection modes

(ev: KeyboardEvent | MouseEvent)

Source from the content-addressed store, hash-verified

857 * Change the cursor style for different selection modes
858 */
859 public updateCursorStyle(ev: KeyboardEvent | MouseEvent): void {
860 if (this._selectionService?.shouldColumnSelect(ev)) {
861 this.element!.classList.add('column-select');
862 } else {
863 this.element!.classList.remove('column-select');
864 }
865 }
866
867 /**
868 * Display the cursor element

Callers 3

openMethod · 0.95
_keyDownMethod · 0.95
_keyUpMethod · 0.95

Calls 2

shouldColumnSelectMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected