termkey_get_fd(3)

termkey_get_fd3

Obtain the file descriptor for the terminal

Usage

#include <termkey.h>

int termkey_get_fd(TermKey *tk);

Link with -ltermkey.

Overview

termkey_get_fd() returns the file descriptor that the termkey(7) instance is using to read bytes from.

Return value

termkey_get_fd() returns the current file descriptor, or -1 if no file descriptor is associated with this instance.

From libtermkey-dev 0.22-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.