* usr/lib/byobu/menu: LP: #881993

- fix escape key determination
This commit is contained in:
Dustin Kirkland 2011-12-18 21:04:04 -06:00
commit 42ac65940d
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -10,6 +10,8 @@ byobu (4.55) unreleased; urgency=low
* usr/bin/byobu-janitor: LP: #867746
- revert previous change, don't automatically set monochrome mode
until we have a better way of detecting it
* usr/lib/byobu/menu: LP: #881993
- fix escape key determination
[ Will Ellwood ]
* usr/lib/byobu/disk: LP: #904824

View file

@ -27,7 +27,7 @@ __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 | $SED "s/.*^\(.\).*/\1/"`
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
elif grep -qs "^source.*none$" $bindings 2>/dev/null; then
key="byobu-config"