summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 23:27:18 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 23:27:18 (EDT)
commit52b04ebbfff75da90a7a374298f63e0264486701 (patch)
treef0d7f39674c8a8c0236cb4c28a1b94a0ed586e07 /src
parent80204fa173a6d7003e2a8b29db7f88a98f111c35 (diff)
downloadfirman.sh-52b04ebbfff75da90a7a374298f63e0264486701.zip
firman.sh-52b04ebbfff75da90a7a374298f63e0264486701.tar.gz
firman.sh-52b04ebbfff75da90a7a374298f63e0264486701.tar.bz2
term_getch(): Fix printable character handling
Diffstat (limited to 'src')
-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}"