summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;;