summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/term.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/term.sh b/src/term.sh
index fc41774..99487eb 100644
--- a/src/term.sh
+++ b/src/term.sh
@@ -272,8 +272,6 @@ _term_get_byte()
term_getch()
{
- local byte=
-
_term_get_byte
case "${term_byte}" in
"$(printf '\033')")
@@ -295,7 +293,7 @@ term_getch()
' ') key=KEY_SPACE;;
"${HT}") key=KEY_TAB;;
"$(printf '\015')") key=KEY_ENTER;;
- *) key="${byte}";;
+ *) key="${term_byte}";;
esac
printf '%s' "${key}"