aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 20fc7329f..bdafcf5a6 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1463,46 +1463,46 @@ unsigned long long bb_makedev(unsigned major, unsigned minor) FAST_FUNC;
1463 * yet doesn't represent any valid Unicode character. 1463 * yet doesn't represent any valid Unicode character.
1464 * Also, -1 is reserved for error indication and we don't use it. */ 1464 * Also, -1 is reserved for error indication and we don't use it. */
1465enum { 1465enum {
1466 KEYCODE_UP = -2, 1466 KEYCODE_UP = -2,
1467 KEYCODE_DOWN = -3, 1467 KEYCODE_DOWN = -3,
1468 KEYCODE_RIGHT = -4, 1468 KEYCODE_RIGHT = -4,
1469 KEYCODE_LEFT = -5, 1469 KEYCODE_LEFT = -5,
1470 KEYCODE_HOME = -6, 1470 KEYCODE_HOME = -6,
1471 KEYCODE_END = -7, 1471 KEYCODE_END = -7,
1472 KEYCODE_INSERT = -8, 1472 KEYCODE_INSERT = -8,
1473 KEYCODE_DELETE = -9, 1473 KEYCODE_DELETE = -9,
1474 KEYCODE_PAGEUP = -10, 1474 KEYCODE_PAGEUP = -10,
1475 KEYCODE_PAGEDOWN = -11, 1475 KEYCODE_PAGEDOWN = -11,
1476 // -12 is reserved for Alt/Ctrl/Shift-TAB 1476 KEYCODE_BACKSPACE = -12, /* Used only if Alt/Ctrl/Shifted */
1477 KEYCODE_D = -13, /* Used only if Alted */
1477#if 0 1478#if 0
1478 KEYCODE_FUN1 = -13, 1479 KEYCODE_FUN1 = ,
1479 KEYCODE_FUN2 = -14, 1480 KEYCODE_FUN2 = ,
1480 KEYCODE_FUN3 = -15, 1481 KEYCODE_FUN3 = ,
1481 KEYCODE_FUN4 = -16, 1482 KEYCODE_FUN4 = ,
1482 KEYCODE_FUN5 = -17, 1483 KEYCODE_FUN5 = ,
1483 KEYCODE_FUN6 = -18, 1484 KEYCODE_FUN6 = ,
1484 KEYCODE_FUN7 = -19, 1485 KEYCODE_FUN7 = ,
1485 KEYCODE_FUN8 = -20, 1486 KEYCODE_FUN8 = ,
1486 KEYCODE_FUN9 = -21, 1487 KEYCODE_FUN9 = ,
1487 KEYCODE_FUN10 = -22, 1488 KEYCODE_FUN10 = ,
1488 KEYCODE_FUN11 = -23, 1489 KEYCODE_FUN11 = ,
1489 KEYCODE_FUN12 = -24, 1490 KEYCODE_FUN12 = ,
1490#endif 1491#endif
1491 /* Be sure that last defined value is small enough 1492 /* ^^^^^ Be sure that last defined value is small enough.
1492 * to not interfere with Alt/Ctrl/Shift bits. 1493 * Current read_key() code allows going up to -32 (0xfff..fffe0).
1493 * So far we do not exceed -31 (0xfff..fffe1), 1494 * This gives three upper bits in LSB to play with:
1494 * which gives us three upper bits in LSB to play with. 1495 * KEYCODE_foo values are 0xfff..fffXX, lowest XX bits are: scavvvvv,
1496 * s=0 if SHIFT, c=0 if CTRL, a=0 if ALT,
1497 * vvvvv bits are the same for same key regardless of "shift bits".
1495 */ 1498 */
1496 //KEYCODE_SHIFT_TAB = (-12) & ~0x80, 1499 //KEYCODE_SHIFT_... = KEYCODE_... & ~0x80,
1497 //KEYCODE_SHIFT_... = KEYCODE_... & ~0x80, 1500 KEYCODE_CTRL_RIGHT = KEYCODE_RIGHT & ~0x40,
1498 //KEYCODE_CTRL_UP = KEYCODE_UP & ~0x40, 1501 KEYCODE_CTRL_LEFT = KEYCODE_LEFT & ~0x40,
1499 //KEYCODE_CTRL_DOWN = KEYCODE_DOWN & ~0x40, 1502 KEYCODE_ALT_RIGHT = KEYCODE_RIGHT & ~0x20,
1500 KEYCODE_CTRL_RIGHT = KEYCODE_RIGHT & ~0x40, 1503 KEYCODE_ALT_LEFT = KEYCODE_LEFT & ~0x20,
1501 KEYCODE_CTRL_LEFT = KEYCODE_LEFT & ~0x40, 1504 KEYCODE_ALT_BACKSPACE = KEYCODE_BACKSPACE & ~0x20,
1502 //KEYCODE_ALT_UP = KEYCODE_UP & ~0x20, 1505 KEYCODE_ALT_D = KEYCODE_D & ~0x20,
1503 //KEYCODE_ALT_DOWN = KEYCODE_DOWN & ~0x20,
1504 KEYCODE_ALT_RIGHT = KEYCODE_RIGHT & ~0x20,
1505 KEYCODE_ALT_LEFT = KEYCODE_LEFT & ~0x20,
1506 1506
1507 KEYCODE_CURSOR_POS = -0x100, /* 0xfff..fff00 */ 1507 KEYCODE_CURSOR_POS = -0x100, /* 0xfff..fff00 */
1508 /* How long is the longest ESC sequence we know? 1508 /* How long is the longest ESC sequence we know?