summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-29 00:29:27 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-29 00:29:27 (EDT)
commit9dcc5b86e73fda790dd81fdbb12ae33534144515 (patch)
tree41fb37ee4c90d350156601d6a31e3ebec865ef06
parentd973bd5b30cd1f030c128fac36c4b91963011c77 (diff)
downloadfirman.sh-9dcc5b86e73fda790dd81fdbb12ae33534144515.zip
firman.sh-9dcc5b86e73fda790dd81fdbb12ae33534144515.tar.gz
firman.sh-9dcc5b86e73fda790dd81fdbb12ae33534144515.tar.bz2
tui_show_prompt(): Handle all unused KEY_*s
-rw-r--r--src/ui/tui.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 5c88f23..b121906 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -244,9 +244,7 @@ tui_show_prompt()
# Input.
key="$(term_getch)"
- if [ "x${key}" = xKEY_INVALID ]; then
- continue
- elif [ "x${key}" = xKEY_TAB ]; then
+ if [ "x${key}" = xKEY_TAB ]; then
focus=$(expr \( ${focus} + 1 \) % 2)
elif [ ${focus} -eq 0 ]; then
case "${key}" in
@@ -279,6 +277,7 @@ tui_show_prompt()
curpos=$(($curpos + 1))
fi
;;
+ KEY_*);;
*)
if [ ${curpos} -lt ${len} ]; then
# TODO: Handle curpos not at end