aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
committerRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
commitbb8d79eadbba1942dbdb9f9cee5c47833afe269f (patch)
treeb8c517e9ca895d60d7227aef7177b6291df5e2cd /include/libbb.h
parent9fa1e4990e655a85025c9d270a1606983e375e47 (diff)
parent7d877fc9312a742b06125927bb1d34bd35398c6c (diff)
downloadbusybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.gz
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.bz2
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 91702fa6e..a6de5e97b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1482,46 +1482,46 @@ unsigned long long bb_makedev(unsigned major, unsigned minor) FAST_FUNC;
1482 * yet doesn't represent any valid Unicode character. 1482 * yet doesn't represent any valid Unicode character.
1483 * Also, -1 is reserved for error indication and we don't use it. */ 1483 * Also, -1 is reserved for error indication and we don't use it. */
1484enum { 1484enum {
1485 KEYCODE_UP = -2, 1485 KEYCODE_UP = -2,
1486 KEYCODE_DOWN = -3, 1486 KEYCODE_DOWN = -3,
1487 KEYCODE_RIGHT = -4, 1487 KEYCODE_RIGHT = -4,
1488 KEYCODE_LEFT = -5, 1488 KEYCODE_LEFT = -5,
1489 KEYCODE_HOME = -6, 1489 KEYCODE_HOME = -6,
1490 KEYCODE_END = -7, 1490 KEYCODE_END = -7,
1491 KEYCODE_INSERT = -8, 1491 KEYCODE_INSERT = -8,
1492 KEYCODE_DELETE = -9, 1492 KEYCODE_DELETE = -9,
1493 KEYCODE_PAGEUP = -10, 1493 KEYCODE_PAGEUP = -10,
1494 KEYCODE_PAGEDOWN = -11, 1494 KEYCODE_PAGEDOWN = -11,
1495 // -12 is reserved for Alt/Ctrl/Shift-TAB 1495 KEYCODE_BACKSPACE = -12, /* Used only if Alt/Ctrl/Shifted */
1496 KEYCODE_D = -13, /* Used only if Alted */
1496#if 0 1497#if 0
1497 KEYCODE_FUN1 = -13, 1498 KEYCODE_FUN1 = ,
1498 KEYCODE_FUN2 = -14, 1499 KEYCODE_FUN2 = ,
1499 KEYCODE_FUN3 = -15, 1500 KEYCODE_FUN3 = ,
1500 KEYCODE_FUN4 = -16, 1501 KEYCODE_FUN4 = ,
1501 KEYCODE_FUN5 = -17, 1502 KEYCODE_FUN5 = ,
1502 KEYCODE_FUN6 = -18, 1503 KEYCODE_FUN6 = ,
1503 KEYCODE_FUN7 = -19, 1504 KEYCODE_FUN7 = ,
1504 KEYCODE_FUN8 = -20, 1505 KEYCODE_FUN8 = ,
1505 KEYCODE_FUN9 = -21, 1506 KEYCODE_FUN9 = ,
1506 KEYCODE_FUN10 = -22, 1507 KEYCODE_FUN10 = ,
1507 KEYCODE_FUN11 = -23, 1508 KEYCODE_FUN11 = ,
1508 KEYCODE_FUN12 = -24, 1509 KEYCODE_FUN12 = ,
1509#endif 1510#endif
1510 /* Be sure that last defined value is small enough 1511 /* ^^^^^ Be sure that last defined value is small enough.
1511 * to not interfere with Alt/Ctrl/Shift bits. 1512 * Current read_key() code allows going up to -32 (0xfff..fffe0).
1512 * So far we do not exceed -31 (0xfff..fffe1), 1513 * This gives three upper bits in LSB to play with:
1513 * which gives us three upper bits in LSB to play with. 1514 * KEYCODE_foo values are 0xfff..fffXX, lowest XX bits are: scavvvvv,
1515 * s=0 if SHIFT, c=0 if CTRL, a=0 if ALT,
1516 * vvvvv bits are the same for same key regardless of "shift bits".
1514 */ 1517 */
1515 //KEYCODE_SHIFT_TAB = (-12) & ~0x80, 1518 //KEYCODE_SHIFT_... = KEYCODE_... & ~0x80,
1516 //KEYCODE_SHIFT_... = KEYCODE_... & ~0x80, 1519 KEYCODE_CTRL_RIGHT = KEYCODE_RIGHT & ~0x40,
1517 //KEYCODE_CTRL_UP = KEYCODE_UP & ~0x40, 1520 KEYCODE_CTRL_LEFT = KEYCODE_LEFT & ~0x40,
1518 //KEYCODE_CTRL_DOWN = KEYCODE_DOWN & ~0x40, 1521 KEYCODE_ALT_RIGHT = KEYCODE_RIGHT & ~0x20,
1519 KEYCODE_CTRL_RIGHT = KEYCODE_RIGHT & ~0x40, 1522 KEYCODE_ALT_LEFT = KEYCODE_LEFT & ~0x20,
1520 KEYCODE_CTRL_LEFT = KEYCODE_LEFT & ~0x40, 1523 KEYCODE_ALT_BACKSPACE = KEYCODE_BACKSPACE & ~0x20,
1521 //KEYCODE_ALT_UP = KEYCODE_UP & ~0x20, 1524 KEYCODE_ALT_D = KEYCODE_D & ~0x20,
1522 //KEYCODE_ALT_DOWN = KEYCODE_DOWN & ~0x20,
1523 KEYCODE_ALT_RIGHT = KEYCODE_RIGHT & ~0x20,
1524 KEYCODE_ALT_LEFT = KEYCODE_LEFT & ~0x20,
1525 1525
1526 KEYCODE_CURSOR_POS = -0x100, /* 0xfff..fff00 */ 1526 KEYCODE_CURSOR_POS = -0x100, /* 0xfff..fff00 */
1527 /* How long is the longest ESC sequence we know? 1527 /* How long is the longest ESC sequence we know?