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