From 7ec2107f4761a086bb2c301128db6939ff6b2f01 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 20 Jan 2012 20:07:59 +0000 Subject: [PATCH] Note in termkey_new(3) that the caller has to init. the terminal in abstract or pipe cases --- man/termkey_new.3 | 2 ++ 1 file changed, 2 insertions(+) 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"