Commit cbae16d
committed
fix: graceful exit with proper terminal cleanup
- Use renderer.destroy() instead of stop() for proper terminal state restoration
- Let OpenTUI handle Ctrl+C via built-in exitOnCtrlC
- Add onDestroy callback to ensure process exits after cleanup
- Fixes cursor visibility and terminal state issues on exit1 parent 078849d commit cbae16d
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 198 | + | |
| 199 | + | |
206 | 200 | | |
| 201 | + | |
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
| |||
705 | 700 | | |
706 | 701 | | |
707 | 702 | | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
708 | 707 | | |
0 commit comments