()
| 14 | const FOCUS_OUT_EVENT = '\x1b[O' |
| 15 | |
| 16 | function getStdin(): ReadStream | null { |
| 17 | const stdin = process.stdin as ReadStream | undefined |
| 18 | if (!stdin || !stdin.isTTY) { |
| 19 | return null |
| 20 | } |
| 21 | return stdin |
| 22 | } |
| 23 | |
| 24 | function enableFocusReporting(): void { |
| 25 | const stdin = getStdin() |
no outgoing calls
no test coverage detected