From ec91d477e2b03f3dd80b96808e7abfedffa6a368 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 22:11:45 -0400 Subject: term_getch(): Fix --- (limited to 'src') 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;; -- cgit v0.9.1