Commit d5acbd4
committed
refactor(tui): 🔨 enhance clear_screen with optional header display
The `clear_screen()` function in both launcher_tui.py and settings_tool.py has been enhanced to accept an optional subtitle parameter that displays a consistent header panel when provided.
- Add `subtitle` parameter to `clear_screen()` function
- Display formatted header panel with subtitle when provided
- Update function calls to use new subtitle feature in settings tool (e.g., "Save Changes", "Exit Without Saving")
- Remove redundant clear_screen call in launcher after startup message
- Improve code reuse and consistency across TUI interfaces1 parent ef8f78e commit d5acbd4
2 files changed
+31
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
967 | 977 | | |
968 | 978 | | |
969 | 979 | | |
970 | | - | |
| 980 | + | |
971 | 981 | | |
972 | 982 | | |
973 | | - | |
974 | | - | |
| 983 | + | |
975 | 984 | | |
976 | 985 | | |
977 | 986 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| |||
1443 | 1453 | | |
1444 | 1454 | | |
1445 | 1455 | | |
1446 | | - | |
1447 | | - | |
1448 | 1456 | | |
| 1457 | + | |
1449 | 1458 | | |
1450 | 1459 | | |
1451 | 1460 | | |
| |||
2401 | 2410 | | |
2402 | 2411 | | |
2403 | 2412 | | |
2404 | | - | |
| 2413 | + | |
2405 | 2414 | | |
2406 | 2415 | | |
2407 | 2416 | | |
| |||
2421 | 2430 | | |
2422 | 2431 | | |
2423 | 2432 | | |
2424 | | - | |
| 2433 | + | |
2425 | 2434 | | |
2426 | 2435 | | |
2427 | 2436 | | |
| |||
0 commit comments