[ Daniel Hahler ]

* usr/lib/menu:
  - Fix extraction of escape key for screen-escape-keys keybindings,
    LP: #881993
This commit is contained in:
Daniel Hahler 2011-10-26 15:02:04 +02:00
commit 93d2209343
2 changed files with 8 additions and 3 deletions

7
debian/changelog vendored
View file

@ -1,8 +1,11 @@
byobu (4.44) unreleased; urgency=low
* UNRELEASED
[ Daniel Hahler ]
* usr/lib/menu:
- Fix extraction of escape key for screen-escape-keys keybindings,
LP: #881993
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 22 Oct 2011 03:21:46 -0500
-- Daniel Hahler <ubuntu@thequod.de> Wed, 26 Oct 2011 14:58:03 +0200
byobu (4.43-0ubuntu1) precise; urgency=low

View file

@ -27,7 +27,9 @@ __menu() {
local bindings esc key text
[ -r "$BYOBU_CONFIG_DIR/keybindings" ] && bindings="$BYOBU_CONFIG_DIR/keybindings" || bindings="$HOME/.screenrc"
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null || [ "$1" = "--disable-f-keys" ]; then
esc=`grep "^escape" $bindings | $SED "s/^.*\(.\)$/\1/"`
esc=`grep "^escape" $bindings`
# Get the second to last byte from the "escape" option
[ -n "$esc" ] && esc=`expr substr "$esc" $(expr ${#esc} - 1) 1`
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
elif grep -qs "^source.*none$" $bindings 2>/dev/null; then
key="byobu-config"