aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-08-25 10:48:41 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-08-25 10:48:41 +0100
commit1b8234e3425e518f40e00751cd0e5261649c166e (patch)
tree54c8fa53251ca96347721961da00aaa43f4c02ce /termkey.h.in
parent7a2b79a6402979b4895e78657d59a770d5b082b3 (diff)
downloadtermo-1b8234e3425e518f40e00751cd0e5261649c166e.tar.gz
termo-1b8234e3425e518f40e00751cd0e5261649c166e.tar.xz
termo-1b8234e3425e518f40e00751cd0e5261649c166e.zip
Provide a flag to return RES_ERROR even on signal (EINTR); without it, retry the operation
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/termkey.h.in b/termkey.h.in
index 33360d8..a22ce5f 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -145,7 +145,8 @@ enum {
TERMKEY_FLAG_UTF8 = 1 << 3, // Input is definitely UTF-8
TERMKEY_FLAG_NOTERMIOS = 1 << 4, // Do not make initial termios calls on construction
TERMKEY_FLAG_SPACESYMBOL = 1 << 5, // Space is symbolic rather than Unicode
- TERMKEY_FLAG_CTRLC = 1 << 6 // Allow Ctrl-C to be read as normal, disabling SIGINT
+ TERMKEY_FLAG_CTRLC = 1 << 6, // Allow Ctrl-C to be read as normal, disabling SIGINT
+ TERMKEY_FLAG_EINTR = 1 << 7 // Return ERROR on signal (EINTR) rather than retry
};
void termkey_check_version(int major, int minor);