Commit 5351d6c
committed
Restore terminal state on TUI setup failure
Use an armed cleanup guard so failed setup and teardown paths restore raw mode, alternate-screen state, cursor shape, and cursor visibility.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5c0a29a6-f8d2-452f-8c71-04d22df877771 parent 9981189 commit 5351d6c
1 file changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
2664 | 2664 | | |
2665 | 2665 | | |
2666 | 2666 | | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
2667 | 2701 | | |
2668 | 2702 | | |
2669 | 2703 | | |
| |||
2675 | 2709 | | |
2676 | 2710 | | |
2677 | 2711 | | |
| 2712 | + | |
2678 | 2713 | | |
2679 | 2714 | | |
2680 | 2715 | | |
| |||
2715 | 2750 | | |
2716 | 2751 | | |
2717 | 2752 | | |
| 2753 | + | |
2718 | 2754 | | |
2719 | 2755 | | |
2720 | 2756 | | |
| |||
0 commit comments