From 46e53d124d03faedd11e99fdb0153d84ce174f99 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 23 Feb 2008 20:26:04 +0000 Subject: Moved termios magic out of demo.c into termkey.c where it belongs --- termkey.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'termkey.h') diff --git a/termkey.h b/termkey.h index 5479f2b..486819f 100644 --- a/termkey.h +++ b/termkey.h @@ -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); -- cgit v1.2.3-54-g00ecf