Repository navigation
Commit 79e831f
committed
fix(tui): restore double Ctrl+C to exit functionality (anomalyco#247)
Re-add the tryExit() wrapper that shows a warning toast on first Ctrl+C
and only exits on second press within 2 seconds. This prevents accidental
exits when the prompt is empty.1 parent 7f10655 commit 79e831f
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
671 | 687 | | |
672 | 688 | | |
673 | 689 | | |
| |||
847 | 863 | | |
848 | 864 | | |
849 | 865 | | |
850 | | - | |
| 866 | + | |
851 | 867 | | |
852 | 868 | | |
853 | 869 | | |
| |||
0 commit comments