summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-29 01:20:21 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-29 01:20:21 (EDT)
commitf177ea0832be4a535a0105afde82f28a7594ec06 (patch)
treeb49aabca76ae9f3b221756269573fc0b8449aff5 /src/ui
parent9d7e7f9d2db1be37c21bb928c87eba1082604ab5 (diff)
downloadfirman.sh-f177ea0832be4a535a0105afde82f28a7594ec06.zip
firman.sh-f177ea0832be4a535a0105afde82f28a7594ec06.tar.gz
firman.sh-f177ea0832be4a535a0105afde82f28a7594ec06.tar.bz2
tui_show_prompt(): Handle KEY_HOME and KEY_END
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tui.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 2e205c4..df7eeb5 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -259,6 +259,12 @@ tui_show_prompt()
[ ${curpos} -lt ${#input} ] || continue
curpos=$(($curpos + 1))
;;
+ KEY_HOME)
+ curpos=0
+ ;;
+ KEY_END)
+ curpos=${#input}
+ ;;
KEY_BACKSPACE)
[ ${curpos} -gt 0 ] || continue
i=1