2008-12-01 23:36:14 +01:00
|
|
|
.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
|
2009-07-15 21:40:44 +02:00
|
|
|
.BI "int termkey_get_fd(TermKey *" tk );
|
2008-12-01 23:36:14 +01:00
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
Link with \fI-ltermkey\fP.
|
|
|
|
.SH DESCRIPTION
|
2012-01-21 01:52:13 +01:00
|
|
|
\fBtermkey_get_fd\fP() returns the file descriptor that the \fBtermkey\fP(7) instance is using to read bytes from.
|
2008-12-01 23:36:14 +01:00
|
|
|
.SH "RETURN VALUE"
|
2012-01-18 15:03:39 +01:00
|
|
|
\fBtermkey_get_fd\fP() returns the current file descriptor, or -1 if no file descriptor is associated with this instance.
|
2008-12-01 23:36:14 +01:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR termkey_new (3),
|
2012-01-21 01:52:13 +01:00
|
|
|
.BR termkey_get_flags (3),
|
|
|
|
.BR termkey (7)
|