aboutsummaryrefslogtreecommitdiff
path: root/termkey_get_fd.3
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-01 22:36:14 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-01 22:36:14 +0000
commitf75bdf1516b031b0f975b77f289ea408e30cb9c9 (patch)
tree525ffbaa756be06cd82abc009cbce07761c71269 /termkey_get_fd.3
parent8737046c4d42c223be6381a66fbee3fbe5cdbb97 (diff)
downloadtermo-f75bdf1516b031b0f975b77f289ea408e30cb9c9.tar.gz
termo-f75bdf1516b031b0f975b77f289ea408e30cb9c9.tar.xz
termo-f75bdf1516b031b0f975b77f289ea408e30cb9c9.zip
Added termkey_get_fd() to API
Diffstat (limited to 'termkey_get_fd.3')
-rw-r--r--termkey_get_fd.318
1 files changed, 18 insertions, 0 deletions
diff --git a/termkey_get_fd.3 b/termkey_get_fd.3
new file mode 100644
index 0000000..d12a872
--- /dev/null
+++ b/termkey_get_fd.3
@@ -0,0 +1,18 @@
+.TH TERMKEY_GET_FD 3
+.SH NAME
+termkey_get_fd \- obtain the file descriptor for the terminal
+.SH SYNOPSIS
+.nf
+.B #include <termkey.h>
+.sp
+.BI "void termkey_get_fd(termkey_t *" tk );
+.fi
+.sp
+Link with \fI-ltermkey\fP.
+.SH DESCRIPTION
+\fBtermkey_get_fd\fP returns the file descriptor that was passed as the \fIfd\fP argument to \fBtermkey_new\fP(3).
+.SH "RETURN VALUE"
+\fBtermkey_get_fd\fP() returns the current file descriptor.
+.SH "SEE ALSO"
+.BR termkey_new (3),
+.BR termkey_get_flags (3)