aboutsummaryrefslogtreecommitdiff
path: root/termkey_new.3
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_new.3
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_new.3')
-rw-r--r--termkey_new.33
1 files changed, 3 insertions, 0 deletions
diff --git a/termkey_new.3 b/termkey_new.3
index 3cb24ce..7cf307a 100644
--- a/termkey_new.3
+++ b/termkey_new.3
@@ -42,6 +42,9 @@ 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.
+.TP
+.B TERMKEY_FLAG_EINTR
+Without this flag, IO operations are retried when interrupted by a signal (\fBEINTR\fP). With this flag the \fBTERMKEY_RES_ERROR\fP result is returned instead.
.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(3).
.SH VERSION CHECK MACRO