summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-29 18:12:31 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-29 18:12:31 (EDT)
commit1acca073f3fc1b9e346a398794e2acd520d0f94d (patch)
tree0f28521f35ac75a8ee31dc0a7076bc1f523fe7c4
parenta28ba227146648a998d9a5093e2ad461adf7a152 (diff)
downloadfirman.sh-1acca073f3fc1b9e346a398794e2acd520d0f94d.zip
firman.sh-1acca073f3fc1b9e346a398794e2acd520d0f94d.tar.gz
firman.sh-1acca073f3fc1b9e346a398794e2acd520d0f94d.tar.bz2
tui_show_prompt(): Hide cursor after KEY_ENTER from input
-rw-r--r--src/ui/tui.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index 592e96a..4aec0d1 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -384,7 +384,10 @@ tui_show_prompt()
focus=$(expr \( ${focus} + 1 \) % 2)
elif [ ${focus} -eq 0 ]; then
case "${key}" in
- KEY_ENTER) break;;
+ KEY_ENTER)
+ term_hide_cursor
+ break
+ ;;
KEY_LEFT)
[ ${curpos} -gt 0 ] || continue
curpos=$(($curpos - 1))