aboutsummaryrefslogtreecommitdiff
path: root/termkey_new.3
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-10 22:29:21 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-10 22:29:21 +0000
commit781c2160c3103a10d87e8d4fac474dd0076653e9 (patch)
treec3a61d61867f580b705b65f48da9de8e05ca1534 /termkey_new.3
parent397a7fb68328b61d1fc0c055dc5f262d49177c1a (diff)
downloadtermo-781c2160c3103a10d87e8d4fac474dd0076653e9.tar.gz
termo-781c2160c3103a10d87e8d4fac474dd0076653e9.tar.xz
termo-781c2160c3103a10d87e8d4fac474dd0076653e9.zip
Added documentation on termkey_{get,set}_flags()
Diffstat (limited to 'termkey_new.3')
-rw-r--r--termkey_new.35
1 files changed, 4 insertions, 1 deletions
diff --git a/termkey_new.3 b/termkey_new.3
index 3fcea96..deaad23 100644
--- a/termkey_new.3
+++ b/termkey_new.3
@@ -36,9 +36,12 @@ Ignore locale settings; force UTF-8 recombining on. This flag overrides \fBTERMK
Even if the terminal file descriptor \fIfd\fP represents a
.SM TTY
device, do not call the \fBtcsetattr\fP() \fBtermios\fP function on it to set it to canonical input mode.
+.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 "RETURN VALUE"
If successful, \fBtermkey_new\fP() returns a pointer to the new instance. On failure, \fBNULL\fP is returned. \fBtermkey_destroy\fP() returns no value.
.SH "SEE ALSO"
.BR termkey_waitkey (3),
.BR termkey_advisereadable (3),
-.BR termkey_getkey (3)
+.BR termkey_getkey (3),
+.BR termkey_get_flags (3)