aboutsummaryrefslogtreecommitdiff
path: root/termkey.h
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-10 20:22:33 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-10 20:22:33 +0000
commit31414eac3bbc40ac10a46a2f5c49ea87b216311a (patch)
tree1182d18aa1c7e2d8d85d2333033ea4e9b29ec26f /termkey.h
parentc71e1928a203855b10bc2524900fd00a48a8435e (diff)
downloadtermo-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/termkey.h b/termkey.h
index 0cfacba..077afdc 100644
--- a/termkey.h
+++ b/termkey.h
@@ -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);