aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-06-26 16:26:15 -0500
committerRob Landley <rob@landley.net>2015-06-26 16:26:15 -0500
commitb20c80b603c1795c473b3957fd2538485ec4eb90 (patch)
tree4d34cc6564010d9a20982b83bcc420c17ad93132 /lib/lib.h
parent325e02ec918246242e89a32c053bf5f767fc37d3 (diff)
downloadtoybox-b20c80b603c1795c473b3957fd2538485ec4eb90.tar.gz
Factor out more not-curses infrastructure into lib.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 54876b6a..92bd6b5d 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -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);