diff options
author | Rob Landley <rob@landley.net> | 2016-01-07 14:34:47 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-01-07 14:34:47 -0600 |
commit | efb309d4cdb2f4c3926b0550d9dc1661c1e4a091 (patch) | |
tree | aee8bfabdaf7ecf20d0ad54f97df9f3bb1ca840e /lib/lib.h | |
parent | d3a435e53c94ec25b4ae5fa2614f49ef8884e08a (diff) | |
download | toybox-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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |