()
| 148 | /* ignore */ |
| 149 | } |
| 150 | const restoreStty = (): void => { |
| 151 | if (savedStty === undefined) return; |
| 152 | const args = savedStty.split(/\s+/).filter((arg) => arg.length > 0); |
| 153 | if (args.length === 0) return; |
| 154 | spawnSync('stty', args, { stdio: ['inherit', 'ignore', 'ignore'] }); |
| 155 | }; |
| 156 | |
| 157 | // If we crash without going through KimiTUI.stop(), the terminal is left in |
| 158 | // raw mode with a hidden cursor and XON/XOFF flow control disabled. Restore |
no outgoing calls
no test coverage detected