diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 20:26:04 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2008-02-23 20:26:04 +0000 |
commit | 46e53d124d03faedd11e99fdb0153d84ce174f99 (patch) | |
tree | 2b305f7413f7b6fdb074cb970cae2e08249b6c93 /termkey.h | |
parent | 8f8e96f015efa9541f6584ff5d15fe3f01a32b28 (diff) | |
download | termo-46e53d124d03faedd11e99fdb0153d84ce174f99.tar.gz termo-46e53d124d03faedd11e99fdb0153d84ce174f99.tar.xz termo-46e53d124d03faedd11e99fdb0153d84ce174f99.zip |
Moved termios magic out of demo.c into termkey.c where it belongs
Diffstat (limited to 'termkey.h')
-rw-r--r-- | termkey.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -115,10 +115,12 @@ enum { TERMKEY_FLAG_CONVERTKP = 0x02, // Convert KP codes to regular keypresses TERMKEY_FLAG_RAW = 0x04, // Input is raw bytes, not UTF-8 TERMKEY_FLAG_UTF8 = 0x08, // Input is definitely UTF-8 + TERMKEY_FLAG_NOTERMIOS = 0x10, // Do not make initial termios calls on construction }; termkey_t *termkey_new(int fd, int flags); void termkey_free(termkey_t *tk); +void termkey_destroy(termkey_t *tk); void termkey_setwaittime(termkey_t *tk, int msec); int termkey_getwaittime(termkey_t *tk); |