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:
Dustin Kirkland 2009-10-13 09:58:54 -05:00
commit 18d6e6626c
2 changed files with 8 additions and 3 deletions

View file

@ -21,10 +21,13 @@
PKG="byobu"
bindings="$HOME/.$PKG/keybindings"
key="F9"
esc="^a-"
if ! grep -qs "^source.*f-keys$" $bindings 2>/dev/null; then
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null; then
esc=`grep "^escape" $bindings | sed "s/^.*\(.\)$/\1/"`
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
elif grep -qs "^source.*none$" $bindings 2>/dev/null; then
key="byobu-config"
else
key="F9"
fi
printf " \005{= kw}%s:<\005{-}\005{=b kw}$key\005{= kw}>" `gettext "Menu"`

2
debian/changelog vendored
View file

@ -2,6 +2,8 @@ byobu (2.39) unreleased; urgency=low
* debian/install, desktop/byobu.desktop, desktop/byobu.svg: add a
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