diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-14 11:23:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-17 08:23:37 +0100 |
commit | 7e66707c7662c50c82c6eb62668134e3e342c34f (patch) | |
tree | ac0d254d0b610591b7e862fc508c701feb3e8ff0 /include | |
parent | 9bdef9e7f2955728dddc189b03d587e42c950ce3 (diff) | |
download | barebox-7e66707c7662c50c82c6eb62668134e3e342c34f.tar.gz barebox-7e66707c7662c50c82c6eb62668134e3e342c34f.tar.xz |
input: Add BB_ prefix to KEY_ defines
Our KEY_ defines conflict with the standard Linux KEY_ defines, so
add a BB_ prefix to them.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/readkey.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/readkey.h b/include/readkey.h index 2793f3f70b..8398ec2e51 100644 --- a/include/readkey.h +++ b/include/readkey.h @@ -4,25 +4,25 @@ #define CTL_CH(c) ((c) - 'a' + 1) /* Ascii keys */ -#define KEY_ENTER '\n' -#define KEY_RETURN '\r' +#define BB_KEY_ENTER '\n' +#define BB_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 */ -#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_CLEAR_SCREEN CTL_CH('l') -#define KEY_DEL7 127 -#define KEY_END 133 /* Cursor Key End */ -#define KEY_PAGEUP 135 /* Cursor Key Page Up */ -#define KEY_PAGEDOWN 136 /* Cursor Key Page Down */ -#define KEY_DEL 137 /* Cursor Key Del */ +#define BB_KEY_UP CTL_CH('p') /* cursor key Up */ +#define BB_KEY_DOWN CTL_CH('n') /* cursor key Down */ +#define BB_KEY_RIGHT CTL_CH('f') /* Cursor Key Right */ +#define BB_KEY_LEFT CTL_CH('b') /* cursor key Left */ +#define BB_KEY_HOME CTL_CH('a') /* Cursor Key Home */ +#define BB_KEY_ERASE_TO_EOL CTL_CH('k') +#define BB_KEY_REFRESH_TO_EOL CTL_CH('e') +#define BB_KEY_ERASE_LINE CTL_CH('x') +#define BB_KEY_INSERT CTL_CH('o') +#define BB_KEY_CLEAR_SCREEN CTL_CH('l') +#define BB_KEY_DEL7 127 +#define BB_KEY_END 133 /* Cursor Key End */ +#define BB_KEY_PAGEUP 135 /* Cursor Key Page Up */ +#define BB_KEY_PAGEDOWN 136 /* Cursor Key Page Down */ +#define BB_KEY_DEL 137 /* Cursor Key Del */ #define ANSI_CLEAR_SCREEN "\e[2J\e[;H" |