From 9f0ef4953d153aaed45166050797e97545b96954 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Wed, 23 Mar 2011 23:20:24 +0000 Subject: Don't steal Ctrl-C from the kernel by default (so leave SIGINT enabled); add a flag to take it if required --- termkey_new.3 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'termkey_new.3') diff --git a/termkey_new.3 b/termkey_new.3 index c1742fc..38e23b8 100644 --- a/termkey_new.3 +++ b/termkey_new.3 @@ -41,6 +41,9 @@ device, do not call the \fBtcsetattr\fP() \fBtermios\fP function on it to set it .TP .B TERMKEY_FLAG_SPACESYMBOL Report space as being a symbolic key rather than a Unicode codepoint. +.TP +.B TERMKEY_FLAG_CTRLC +Disable the \fBSIGINT\fP behaviour of \fICtrl-C\fP. If this flag is provided, then \fICtrl-C\fP will be available as a normal keypress, rather than sending the process group a \fBSIGINT\fP. This flag only takes effect without \fBTERMKEY_FLAG_NOTERMIOS\fP; with it, none of the signal keys are disabled anyway. .PP When the constructor is invoked, it attempts to detect if the current locale is UTF-8 aware or not, and sets either the \fBTERMKEY_FLAG_UTF8\fP or \fBTERMKEY_FLAG_RAW\fP flag. One of these two bits will always be in effect. The current flags in effect can be obtained by \fBtermkey_get_flags\fP(). .SH VERSION CHECK MACRO -- cgit v1.2.3-54-g00ecf