aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-20 20:07:59 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-20 20:07:59 +0000
commit7ec2107f4761a086bb2c301128db6939ff6b2f01 (patch)
tree89f2c2922145696034c46a7d6068dddd178ae7e7
parent2ed8bae4f603e1086c2a1056c108209893b541ba (diff)
downloadtermo-7ec2107f4761a086bb2c301128db6939ff6b2f01.tar.gz
termo-7ec2107f4761a086bb2c301128db6939ff6b2f01.tar.xz
termo-7ec2107f4761a086bb2c301128db6939ff6b2f01.zip
Note in termkey_new(3) that the caller has to init. the terminal in abstract or pipe cases
-rw-r--r--man/termkey_new.32
1 files changed, 2 insertions, 0 deletions
diff --git a/man/termkey_new.3 b/man/termkey_new.3
index b9ded7b..c4e5783 100644
--- a/man/termkey_new.3
+++ b/man/termkey_new.3
@@ -49,6 +49,8 @@ Disable the \fBSIGINT\fP behaviour of \fICtrl-C\fP. If this flag is provided, th
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).
+.PP
+If a file handle is provided, the terminfo driver may send a string to the terminal before \fBtermkey_new\fP() returns to initialise it, or set the state correctly. This will not be done if no file handle is provided, or if the file handle is a pipe (\fBS_ISFIFO\fP()). In this case it will be the caller's responsibility to ensure the terminal is in the correct mode.
.SH VERSION CHECK MACRO
Before calling any functions in the \fItermkey\fP library, an application should use the \fBTERMKEY_CHECK_VERSION\fP macro to check that the loaded version of the library is compatible with the version it was compiled against. This should be done early on, ideally just after entering its \fBmain()\fP function.
.SH "RETURN VALUE"