Provide a flag to return RES_ERROR even on signal (EINTR); without it, retry the operation

This commit is contained in:
Paul LeoNerd Evans
2011-08-25 10:48:41 +01:00
parent 7a2b79a640
commit 1b8234e342
5 changed files with 19 additions and 5 deletions

View File

@@ -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);