Don't steal Ctrl-C from the kernel by default (so leave SIGINT enabled); add a flag to take it if required

This commit is contained in:
Paul LeoNerd Evans
2011-03-23 23:20:24 +00:00
parent a71f68dd57
commit 9f0ef4953d
3 changed files with 10 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ 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
};
void termkey_check_version(int major, int minor);