()
| 21 | // and drain must agree on terminal detection. TERM_PROGRAM check is the sync |
| 22 | // fallback; isXtermJs() is the authoritative XTVERSION-probe result. |
| 23 | function 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 |
no test coverage detected