aboutsummaryrefslogtreecommitdiff
path: root/man/termkey_start.3
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-03-08 21:58:27 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-03-08 21:58:27 +0000
commit775806d32b73ebfe7abaec6e172de336431eca0d (patch)
tree1fec79956d839ac318999c39132b57505453ca0a /man/termkey_start.3
parent24fd4f668d96c4297429bf7a6746b1ff3aec12b5 (diff)
downloadtermo-775806d32b73ebfe7abaec6e172de336431eca0d.tar.gz
termo-775806d32b73ebfe7abaec6e172de336431eca0d.tar.xz
termo-775806d32b73ebfe7abaec6e172de336431eca0d.zip
Added documentation for termkey_{start,stop}, termkey_is_started
Diffstat (limited to 'man/termkey_start.3')
-rw-r--r--man/termkey_start.325
1 files changed, 25 insertions, 0 deletions
diff --git a/man/termkey_start.3 b/man/termkey_start.3
new file mode 100644
index 0000000..22df70f
--- /dev/null
+++ b/man/termkey_start.3
@@ -0,0 +1,25 @@
+.TH TERMKEY_START 3
+.SH NAME
+termkey_start, termkey_stop, termkey_is_started \- enable or disable terminal operations
+.SH SYNOPSIS
+.nf
+.B #include <termkey.h>
+.sp
+.BI "int termkey_start(TermKey *" tk );
+.BI "int termkey_stop(TermKey *" tk );
+.sp
+.BI "int termkey_is_started(TermKey *" tk );
+.fi
+.sp
+Link with \fI\-ltermkey\fP.
+.SH DESCRIPTION
+\fBtermkey_start\fP() enables the terminal IO operations of the given \fBtermkey\fP(7) instance, including sending a terminal control sequence and setting the \fBtermios\fP(3) modes required.
+.PP
+\fBtermkey_stop\fP() disables terminal IO operations, by reversing the steps taken by \fPtermkey_start\fP(). A newly-constructed \fBtermkey\fP instance will have terminal IO enabled already.
+.PP
+\fBtermkey_is_started\fP() enquires whether terminal IO is currently enabled.
+.SH "RETURN VALUE"
+If successful, \fBtermkey_start\fP() and \fBtermkey_stop\fP() return a true value. On failure, zero is returned with \fIerrno\fP set to indicate the failure. \fBtermkey_is_started\fP() returns true or false to indicate whether terminal IO is currently enabled.
+.SH "SEE ALSO"
+.BR termkey_new (3),
+.BR termkey (7)