diff options
author | Rob Landley <rob@landley.net> | 2015-06-26 16:26:15 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-06-26 16:26:15 -0500 |
commit | b20c80b603c1795c473b3957fd2538485ec4eb90 (patch) | |
tree | 4d34cc6564010d9a20982b83bcc420c17ad93132 /lib/lib.h | |
parent | 325e02ec918246242e89a32c053bf5f767fc37d3 (diff) | |
download | toybox-b20c80b603c1795c473b3957fd2538485ec4eb90.tar.gz |
Factor out more not-curses infrastructure into lib.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -184,7 +184,22 @@ int xpoll(struct pollfd *fds, int nfds, int timeout); int xgettty(void); int terminal_size(unsigned *xx, unsigned *yy); int set_terminal(int fd, int raw, struct termios *old); -int scan_key(char *scratch, char **seqs, int block); +int scan_key(char *scratch, int block); +void tty_esc(char *s); +void tty_jump(int x, int y); +void tty_reset(void); +void tty_sigreset(int i); + +// Results from scan_key() +#define KEY_UP 256 +#define KEY_DOWN 257 +#define KEY_RIGHT 258 +#define KEY_LEFT 259 +#define KEY_PGUP 260 +#define KEY_PGDN 261 +#define KEY_HOME 262 +#define KEY_END 263 +#define KEY_INSERT 264 // net.c int xsocket(int domain, int type, int protocol); |