| 1 | # Ctrl+C Exit Behavior |
| 2 | |
| 3 | ## Overview |
| 4 | |
| 5 | Ctrl+C operates on two levels: |
| 6 | |
| 7 | 1. **Menus/Selectors**: Immediate cancellation and return to previous state |
| 8 | 2. **Main Application**: Two-stage exit requiring double Ctrl+C within 1 second |
| 9 | |
| 10 | ## Two-Stage Exit (Main Application) |
| 11 | |
| 12 | ### First Ctrl+C |
| 13 | |
| 14 | - Shows temporary status message "ctrl+c to exit" in bottom-left status bar |
| 15 | - Message automatically disappears after 1 second |
| 16 | - Clears any text in the input field (if focused) |
| 17 | - Does **not** exit the application |
| 18 | |
| 19 | ### Second Ctrl+C (within 1 second) |
| 20 | |
| 21 | - Exits the application immediately |
| 22 | - Performs graceful shutdown |
| 23 | |
| 24 | ### Second Ctrl+C (after 1 second) |
| 25 | |
| 26 | - Treated as a new "first Ctrl+C" |
| 27 | - Shows exit message again |
| 28 | - User must press Ctrl+C twice within 1 second window to actually exit |
| 29 | |
| 30 | ## Menu/Selector Cancellation |
| 31 | |
| 32 | Ctrl+C immediately cancels and returns to the previous state in all interactive menus and selectors. |