aboutsummaryrefslogtreecommitdiff
path: root/man/termkey_waitkey.3.sh
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 14:03:39 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 14:03:39 +0000
commit6d6afe788c3ec1f320e12449eee230fb366228c5 (patch)
treea7f17b111e20dbe67bcaf5067f2ecd9c00d9f1db /man/termkey_waitkey.3.sh
parent82ad14175cbcc7c0c660720c7a31f8e6f1cefe4e (diff)
downloadtermo-6d6afe788c3ec1f320e12449eee230fb366228c5.tar.gz
termo-6d6afe788c3ec1f320e12449eee230fb366228c5.tar.xz
termo-6d6afe788c3ec1f320e12449eee230fb366228c5.zip
Allow passing fd = -1 to constructor to make an instance not associated with an fd; must use push_bytes to provide it input
Diffstat (limited to 'man/termkey_waitkey.3.sh')
-rw-r--r--man/termkey_waitkey.3.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/termkey_waitkey.3.sh b/man/termkey_waitkey.3.sh
index 754ac21..9155656 100644
--- a/man/termkey_waitkey.3.sh
+++ b/man/termkey_waitkey.3.sh
@@ -12,7 +12,7 @@ termkey_waitkey \- wait for and retrieve the next key event
.sp
Link with \fI-ltermkey\fP.
.SH DESCRIPTION
-\fBtermkey_waitkey\fP(3) attempts to retrieve a single keypress event from the buffer, and put it in the structure referred to by \fIkey\fP. If successful it will return \fBTERMKEY_RES_KEY\fP to indicate that the structure now contains a new keypress event. If nothing is in the buffer it will block until one is available. If no events are ready and the input stream is now closed, will return \fBTERMKEY_RES_EOF\fP.
+\fBtermkey_waitkey\fP(3) attempts to retrieve a single keypress event from the buffer, and put it in the structure referred to by \fIkey\fP. If successful it will return \fBTERMKEY_RES_KEY\fP to indicate that the structure now contains a new keypress event. If nothing is in the buffer it will block until one is available. If no events are ready and the input stream is now closed, will return \fBTERMKEY_RES_EOF\fP. If no filehandle is associated with this instance, \fBTERMKEY_RES_ERROR\fP is returned with \fIerrno\fP set to \fBEBADF\fP.
.PP
Before returning, this function canonicalises the \fIkey\fP structure according to the rules given for \fBtermkey_canonicalise\fP(3).
.PP