()
| 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. */ |
| 143 | export 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> |
no outgoing calls
no test coverage detected