From 42ac65940d3e29b36fd67bb24485314f2397547a Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 18 Dec 2011 21:04:04 -0600 Subject: [PATCH] * usr/lib/byobu/menu: LP: #881993 - fix escape key determination --- debian/changelog | 2 ++ usr/lib/byobu/menu | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d618a999..dc3a9b28 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/usr/lib/byobu/menu b/usr/lib/byobu/menu index 5cbf0f9b..949fee02 100755 --- a/usr/lib/byobu/menu +++ b/usr/lib/byobu/menu @@ -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"