summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tui.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 40a2857..c3d447c 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -246,7 +246,17 @@ tui_show_prompt()
elif [ ${focus} -eq 0 ]; then
case "${key}" in
KEY_ENTER) break;;
+ KEY_BACKSPACE)
+ input="${input%?}"
+ curpos=$(($curpos - 1))
+ ;;
+ KEY_DEL)
+ ;;
# TODO: Line editing
+ KEY_SPACE)
+ input="${input} "
+ curpos=$(($curpos + 1))
+ ;;
*)
input="${input}${key}"
curpos=$(($curpos + 1))