MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / isCursorHidden

Function isCursorHidden

packages/node/src/testing/screen.ts:43–45  ·  view source on GitHub ↗
(term: HeadlessTerminal)

Source from the content-addressed store, hash-verified

41// @xterm/headless does not expose cursor-hidden state publicly, so snapshotting
42// falls back to the current internal flag behind one guarded accessor.
43function isCursorHidden(term: HeadlessTerminal): boolean {
44 return term._core?._inputHandler?._coreService?.isCursorHidden === true;
45}
46
47export function createTerminalScreen(opts: Readonly<{ cols: number; rows: number }>): {
48 write: (data: string) => Promise<void>;

Callers 1

snapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected