From 52b04ebbfff75da90a7a374298f63e0264486701 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 23:27:18 -0400 Subject: term_getch(): Fix printable character handling --- (limited to 'src') 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}" -- cgit v0.9.1