()
| 33 | } |
| 34 | |
| 35 | function disableFocusReporting(): void { |
| 36 | const stdin = getStdin() |
| 37 | if (!stdin) return |
| 38 | |
| 39 | try { |
| 40 | process.stdout.write(DISABLE_FOCUS_REPORTING) |
| 41 | } catch (error) { |
| 42 | logger.debug(error, 'Failed to disable focus reporting') |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | export interface UseTerminalFocusOptions { |
| 47 | onFocusChange: (focused: boolean) => void |
no test coverage detected