diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-10 20:22:33 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-10 20:22:33 +0000 |
commit | 31414eac3bbc40ac10a46a2f5c49ea87b216311a (patch) | |
tree | 1182d18aa1c7e2d8d85d2333033ea4e9b29ec26f /termkey.h | |
parent | c71e1928a203855b10bc2524900fd00a48a8435e (diff) | |
download | termo-31414eac3bbc40ac10a46a2f5c49ea87b216311a.tar.gz termo-31414eac3bbc40ac10a46a2f5c49ea87b216311a.tar.xz termo-31414eac3bbc40ac10a46a2f5c49ea87b216311a.zip |
Implement waittime polling to try to distinguish Esc, 1 from A-1, etc.. on slow terminals
Diffstat (limited to 'termkey.h')
-rw-r--r-- | termkey.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -110,7 +110,11 @@ enum { termkey_t *termkey_new(int fd, int flags); void termkey_free(termkey_t *tk); +void termkey_setwaittime(termkey_t *tk, int msec); +int termkey_getwaittime(termkey_t *tk); + termkey_result termkey_getkey(termkey_t *tk, termkey_key *key); +termkey_result termkey_getkey_force(termkey_t *tk, termkey_key *key); termkey_result termkey_waitkey(termkey_t *tk, termkey_key *key); void termkey_pushinput(termkey_t *tk, unsigned char *input, size_t inputlen); |