summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-02-13 01:59:21 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-02-16 18:17:32 +0800
commit1f22d10f1570ccf83a842886ff016e9781dfed3e (patch)
tree156a19589798b76b3ceb49297074875daa59a139 /include
parentef654d161766c13e002f2bf738007ccf44d84749 (diff)
downloadbarebox-1f22d10f1570ccf83a842886ff016e9781dfed3e.tar.gz
barebox-1f22d10f1570ccf83a842886ff016e9781dfed3e.tar.xz
readkey: add define for Ascii keys
this will simplify the usage of gpio keyboard Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/readkey.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/readkey.h b/include/readkey.h
index aabb835e89..f134846af6 100644
--- a/include/readkey.h
+++ b/include/readkey.h
@@ -3,6 +3,10 @@
#define CTL_CH(c) ((c) - 'a' + 1)
+/* Ascii keys */
+#define KEY_ENTER '\n'
+#define KEY_RETURN '\r'
+
/* Misc. non-Ascii keys */
#define KEY_UP CTL_CH('p') /* cursor key Up */
#define KEY_DOWN CTL_CH('n') /* cursor key Down */