aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-07 14:34:47 -0600
committerRob Landley <rob@landley.net>2016-01-07 14:34:47 -0600
commitefb309d4cdb2f4c3926b0550d9dc1661c1e4a091 (patch)
treeaee8bfabdaf7ecf20d0ad54f97df9f3bb1ca840e /lib/lib.h
parentd3a435e53c94ec25b4ae5fa2614f49ef8884e08a (diff)
downloadtoybox-efb309d4cdb2f4c3926b0550d9dc1661c1e4a091.tar.gz
Make scan_key() specify timeout in miliseconds, split out terminal_probesize(),
add function key definitions and shift/ctrl/alt cursor keys.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/lib.h b/lib/lib.h
index d56cdbe3..ade7c59b 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -221,9 +221,10 @@ int draw_rstr(char *start, int width, int (*escout)(FILE *out, wchar_t wc));
// interestingtimes.c
int xgettty(void);
int terminal_size(unsigned *xx, unsigned *yy);
-int scan_key_getsize(char *scratch, int block, unsigned *xx, unsigned *yy);
+int terminal_probesize(unsigned *xx, unsigned *yy);
+int scan_key_getsize(char *scratch, int miliwait, unsigned *xx, unsigned *yy);
int set_terminal(int fd, int raw, struct termios *old);
-int scan_key(char *scratch, int block);
+int scan_key(char *scratch, int miliwait);
void tty_esc(char *s);
void tty_jump(int x, int y);
void tty_reset(void);