MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isXtermJsHost

Function isXtermJsHost

src/ink/render-node-to-output.ts:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21// and drain must agree on terminal detection. TERM_PROGRAM check is the sync
22// fallback; isXtermJs() is the authoritative XTVERSION-probe result.
23function isXtermJsHost(): boolean {
24 return process.env.TERM_PROGRAM === 'vscode' || isXtermJs()
25}
26
27// Per-frame scratch: set when any node's yoga position/size differs from
28// its cached value, or a child was removed. Read by ink.tsx to decide

Callers 1

renderNodeToOutputFunction · 0.85

Calls 1

isXtermJsFunction · 0.85

Tested by

no test coverage detected