summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 22:11:45 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 22:11:45 (EDT)
commitec91d477e2b03f3dd80b96808e7abfedffa6a368 (patch)
tree9a8395f7b1e0f7eabb6ca6a49c52b2aa02a72197 /src
parent2f955c5d17d2eecd93454898439b2aa8c85fe7d8 (diff)
downloadfirman.sh-ec91d477e2b03f3dd80b96808e7abfedffa6a368.zip
firman.sh-ec91d477e2b03f3dd80b96808e7abfedffa6a368.tar.gz
firman.sh-ec91d477e2b03f3dd80b96808e7abfedffa6a368.tar.bz2
term_getch(): Fix
Diffstat (limited to 'src')
-rw-r--r--src/term.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/term.sh b/src/term.sh
index c987031..be0b708 100644
--- a/src/term.sh
+++ b/src/term.sh
@@ -274,12 +274,14 @@ term_getch()
{
local byte=
- byte="$(getbyte)"
- case "${byte}" in
+ _term_get_byte
+ case "${term_byte}" in
"$(printf '\033')")
- case "$(getbyte)" in
+ _term_get_byte
+ case "${term_byte}" in
'[')
- case "$(getbyte)" in
+ _term_get_byte
+ case "${term_byte}" in
'A') key=KEY_UP;;
'B') key=KEY_DOWN;;
'C') key=KEY_RIGHT;;