mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
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:
parent
ff6927e51b
commit
085b1da000
2 changed files with 12 additions and 2 deletions
10
bin/menu
10
bin/menu
|
@ -18,5 +18,13 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
[ "$1" = "--detail" ] && exit 0
|
[ "$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
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
||||||
byobu (2.38) unreleased; urgency=low
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Oct 2009 11:35:53 -0500
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue