aboutsummaryrefslogtreecommitdiff
path: root/termo.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-12-30 08:30:59 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-12-30 08:30:59 +0100
commit5b05b96ec0cbef6ed10adb1423cdedde09ee868e (patch)
tree69e15ab41f5367d07c2d1cff8d06d1022c7c0d7a /termo.h
parenta9b41e41b7789924465a7e5596a463ed93d8fc26 (diff)
downloadtermo-5b05b96ec0cbef6ed10adb1423cdedde09ee868e.tar.gz
termo-5b05b96ec0cbef6ed10adb1423cdedde09ee868e.tar.xz
termo-5b05b96ec0cbef6ed10adb1423cdedde09ee868e.zip
Backport TERMKEY_FLAG_NOSTART and fix two leaks
...that are notably still present in the original library.
Diffstat (limited to 'termo.h')
-rw-r--r--termo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/termo.h b/termo.h
index f32d5f8..32eda4f 100644
--- a/termo.h
+++ b/termo.h
@@ -192,7 +192,9 @@ enum
// Allow Ctrl-C to be read as normal, disabling SIGINT
TERMO_FLAG_CTRLC = 1 << 6,
// Return ERROR on signal (EINTR) rather than retry
- TERMO_FLAG_EINTR = 1 << 7
+ TERMO_FLAG_EINTR = 1 << 7,
+ // Do not call termkey_start() in constructor
+ TERMO_FLAG_NOSTART = 1 << 8
};
enum