Skip to content

Commit de28b1f

Browse files
authored
title (#67)
1 parent e08a3f8 commit de28b1f

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ All notable changes to this project will be documented here.
44

55
---
66

7-
## [Unreleased]
7+
## [2.2.2] - 2025-04-26
88

99
### Changed
1010

1111
- Updated Screenshots
12+
- tools/dbg_vars.sh - When running with 'clear' it clears env before displaying
13+
current state
14+
- whiptail / dialog - useses `--title` option to display title
1215

1316
---
1417

scripts/dialog_handling.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ alt_prefix() {
184184
whiptail | dialog) ;;
185185
*) error_msg "Un-recognized cfg_alt_menu_handler: [$cfg_alt_menu_handler]" ;;
186186
esac
187-
menu_items="$cfg_alt_menu_handler --menu \"$menu_name\" 0 0 0 "
187+
menu_items="$cfg_alt_menu_handler --title \"$menu_name\" --menu \"\" 0 0 0 "
188188
}
189189

190190
alt_open_menu() {

tools/dbg_vars.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
# Available debug variables
1010
#
1111

12+
[ "$1" = "clear" ] && {
13+
unset TMUX_MENUS_SHOW_CMDS
14+
unset TMUX_MENUS_LOGGING_MINIMAL
15+
unset TMUX_MENUS_NO_DISPLAY
16+
unset TMUX_MENUS_PROFILING
17+
unset TMUX_MENUS_HANDLER
18+
}
19+
1220
echo "TMUX_MENUS_SHOW_CMDS $TMUX_MENUS_SHOW_CMDS"
1321
echo " 1 Display cmd used for an action, if a prefix sequence show it"
1422
echo
@@ -33,11 +41,3 @@ echo
3341
echo "To clear all debug variables, source this with option: clear"
3442
echo " . $0 clear"
3543
echo
36-
37-
[ "$1" = "clear" ] && {
38-
unset TMUX_MENUS_SHOW_CMDS
39-
unset TMUX_MENUS_LOGGING_MINIMAL
40-
unset TMUX_MENUS_NO_DISPLAY
41-
unset TMUX_MENUS_PROFILING
42-
unset TMUX_MENUS_HANDLER
43-
}

0 commit comments

Comments
 (0)