aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-10-25 23:23:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-10-25 23:23:00 +0000
commit0112ff5203e1bbc37425b87a71326aa0a85ec283 (patch)
tree93d798f5a0611f77e6eb9983368710875be334a3 /include
parent73d702ee07347f5cf82175c28a12bdd8d297251f (diff)
downloadbusybox-w32-0112ff5203e1bbc37425b87a71326aa0a85ec283.tar.gz
busybox-w32-0112ff5203e1bbc37425b87a71326aa0a85ec283.tar.bz2
busybox-w32-0112ff5203e1bbc37425b87a71326aa0a85ec283.zip
vi: move key reading routine out of vi into llbbb
function old new delta read_key - 310 +310 .... static.esccmds 170 61 -109 readit 286 60 -226 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 9/10 up/down: 349/-367) Total: -18 bytes
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 5b92574dd..931710962 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -921,6 +921,39 @@ void bb_displayroutes(int noresolve, int netstatfmt) FAST_FUNC;
921#endif 921#endif
922 922
923 923
924/* "Keycodes" that report an escape sequence.
925 * We use something which fits into signed char,
926 * yet doesn't represent any valid Unicode characher.
927 * Also, -1 is reserved for error indication and we don't use it. */
928enum {
929 KEYCODE_UP = -2,
930 KEYCODE_DOWN = -3,
931 KEYCODE_RIGHT = -4,
932 KEYCODE_LEFT = -5,
933 KEYCODE_HOME = -6,
934 KEYCODE_END = -7,
935 KEYCODE_INSERT = -8,
936 KEYCODE_DELETE = -9,
937 KEYCODE_PAGEUP = -10,
938 KEYCODE_PAGEDOWN = -11,
939#if 0
940 KEYCODE_FUN1 = -12,
941 KEYCODE_FUN2 = -13,
942 KEYCODE_FUN3 = -14,
943 KEYCODE_FUN4 = -15,
944 KEYCODE_FUN5 = -16,
945 KEYCODE_FUN6 = -17,
946 KEYCODE_FUN7 = -18,
947 KEYCODE_FUN8 = -19,
948 KEYCODE_FUN9 = -20,
949 KEYCODE_FUN10 = -21,
950 KEYCODE_FUN11 = -22,
951 KEYCODE_FUN12 = -23,
952#endif
953};
954int read_key(int fd, smalluint *nbuffered, char *buffer) FAST_FUNC;
955
956
924/* Networking */ 957/* Networking */
925int create_icmp_socket(void) FAST_FUNC; 958int create_icmp_socket(void) FAST_FUNC;
926int create_icmp6_socket(void) FAST_FUNC; 959int create_icmp6_socket(void) FAST_FUNC;