MCPcopy
hub / github.com/codeaashu/claude-code / isXtermJs

Function isXtermJs

src/ink/terminal.ts:143–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 * SSH — query/reply goes through the pty). Early calls may miss the probe
142 * reply — call lazily (e.g. in an event handler) if SSH detection matters. */
143export function isXtermJs(): boolean {
144 if (process.env.TERM_PROGRAM === 'vscode') return true
145 return xtversionName?.startsWith('xterm.js') ?? false
146}
147
148// Terminals known to correctly implement the Kitty keyboard protocol
149// (CSI >1u) and/or xterm modifyOtherKeys (CSI >4;2m) for ctrl+shift+<letter>

Callers 4

initAndLogWheelAccelFunction · 0.85
ModeIndicatorFunction · 0.85
isXtermJsHostFunction · 0.85
handleMouseEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected