bin/menu: dynamically change the menu message between

Menu:<F9> and Menu:^a-@, based on the users chosen keybinding set,
LP: #446248
This commit is contained in:
Dustin Kirkland 2009-10-11 14:45:05 -05:00
commit 085b1da000
2 changed files with 12 additions and 2 deletions

View file

@ -18,5 +18,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[ "$1" = "--detail" ] && exit 0
PKG="byobu"
bindings="$HOME/.$PKG/keybindings"
printf " \005{= kw}%s:<\005{-}\005{=b kw}F9\005{= kw}>" `gettext "Menu"`
key="F9"
esc="^a-"
if ! grep -qs "^source.*f-keys$" $bindings 2>/dev/null; then
esc=`grep "^escape" $bindings | sed "s/^.*\(.\)$/\1/"`
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
fi
printf " \005{= kw}%s:<\005{-}\005{=b kw}$key\005{= kw}>" `gettext "Menu"`

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (2.38) unreleased; urgency=low
* UNRELEASED
* bin/menu: dynamically change the menu message between
Menu:<F9> and Menu:^a-@, based on the users chosen keybinding set,
LP: #446248
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Oct 2009 11:35:53 -0500