mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
bin/menu: improve logic for the menu button, to explicitly look for
screen-escape-keys (^a-@), or none (byobu-config), else (F9), LP: #450421
This commit is contained in:
parent
339f0be719
commit
18d6e6626c
2 changed files with 8 additions and 3 deletions
9
bin/menu
9
bin/menu
|
@ -21,10 +21,13 @@
|
||||||
PKG="byobu"
|
PKG="byobu"
|
||||||
bindings="$HOME/.$PKG/keybindings"
|
bindings="$HOME/.$PKG/keybindings"
|
||||||
|
|
||||||
key="F9"
|
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null; then
|
||||||
esc="^a-"
|
|
||||||
if ! grep -qs "^source.*f-keys$" $bindings 2>/dev/null; then
|
|
||||||
esc=`grep "^escape" $bindings | sed "s/^.*\(.\)$/\1/"`
|
esc=`grep "^escape" $bindings | sed "s/^.*\(.\)$/\1/"`
|
||||||
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
|
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
|
||||||
|
elif grep -qs "^source.*none$" $bindings 2>/dev/null; then
|
||||||
|
key="byobu-config"
|
||||||
|
else
|
||||||
|
key="F9"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf " \005{= kw}%s:<\005{-}\005{=b kw}$key\005{= kw}>" `gettext "Menu"`
|
printf " \005{= kw}%s:<\005{-}\005{=b kw}$key\005{= kw}>" `gettext "Menu"`
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -2,6 +2,8 @@ byobu (2.39) unreleased; urgency=low
|
||||||
|
|
||||||
* debian/install, desktop/byobu.desktop, desktop/byobu.svg: add a
|
* debian/install, desktop/byobu.desktop, desktop/byobu.svg: add a
|
||||||
desktop icon for Byobu, LP: #449200
|
desktop icon for Byobu, LP: #449200
|
||||||
|
* bin/menu: improve logic for the menu button, to explicitly look for
|
||||||
|
screen-escape-keys (^a-@), or none (byobu-config), else (F9), LP: #450421
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 11 Oct 2009 14:58:18 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 11 Oct 2009 14:58:18 -0500
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue