summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 22:17:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 22:17:09 (EDT)
commit80204fa173a6d7003e2a8b29db7f88a98f111c35 (patch)
treef23ec380a549ea201724caaf777cb5a6215adbec
parentc760fe41c838535197f3da239a1f8966df83f8e3 (diff)
downloadfirman.sh-80204fa173a6d7003e2a8b29db7f88a98f111c35.zip
firman.sh-80204fa173a6d7003e2a8b29db7f88a98f111c35.tar.gz
firman.sh-80204fa173a6d7003e2a8b29db7f88a98f111c35.tar.bz2
term_getch(): Fix KEY_ENTER detection
-rw-r--r--src/term.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.sh b/src/term.sh
index be0b708..fc41774 100644
--- a/src/term.sh
+++ b/src/term.sh
@@ -294,7 +294,7 @@ term_getch()
;;
' ') key=KEY_SPACE;;
"${HT}") key=KEY_TAB;;
- "${LF}") key=KEY_ENTER;;
+ "$(printf '\015')") key=KEY_ENTER;;
*) key="${byte}";;
esac