From 1acca073f3fc1b9e346a398794e2acd520d0f94d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 18:12:31 -0400 Subject: tui_show_prompt(): Hide cursor after KEY_ENTER from input --- 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)) -- cgit v0.9.1