From f177ea0832be4a535a0105afde82f28a7594ec06 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 01:20:21 -0400 Subject: tui_show_prompt(): Handle KEY_HOME and KEY_END --- (limited to 'src') 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 -- cgit v0.9.1