diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:45 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:45 +0200 |
commit | 052c3c1ea3b5c33b5de42ef9318185274b9b64a1 (patch) | |
tree | 18141b11adea105d34eb5212233c87ee8ffbb081 /include/readkey.h | |
parent | 986c81c5a38597947eac4fda3b49870ec84c63c3 (diff) | |
download | barebox-052c3c1ea3b5c33b5de42ef9318185274b9b64a1.tar.gz barebox-052c3c1ea3b5c33b5de42ef9318185274b9b64a1.tar.xz |
svn_rev_349
Diffstat (limited to 'include/readkey.h')
-rw-r--r-- | include/readkey.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/readkey.h b/include/readkey.h new file mode 100644 index 0000000000..ba35af9cc9 --- /dev/null +++ b/include/readkey.h @@ -0,0 +1,25 @@ +#ifndef READKEY_H +#define READKEY_H + +#define CTL_CH(c) ((c) - 'a' + 1) + +// Misc. non-Ascii keys +#define KEY_UP CTL_CH('p') // cursor key Up +#define KEY_DOWN CTL_CH('n') // cursor key Down +#define KEY_RIGHT CTL_CH('f') // Cursor Key Right +#define KEY_LEFT CTL_CH('b') // cursor key Left +#define KEY_HOME CTL_CH('a') // Cursor Key Home +#define KEY_ERASE_TO_EOL CTL_CH('k') +#define KEY_REFRESH_TO_EOL CTL_CH('e') +#define KEY_ERASE_LINE CTL_CH('x') +#define KEY_INSERT CTL_CH('o') +#define KEY_DEL7 (char)127 +#define KEY_END (char)133 // Cursor Key End +#define KEY_PAGEUP (char)135 // Cursor Key Page Up +#define KEY_PAGEDOWN (char)136 // Cursor Key Page Down +#define KEY_DEL (char)137 // Cursor Key Del + +char read_key(void); + +#endif /* READKEY_H */ + |