logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

termkey_get_fd - obtain the file descriptor for the terminal

Description

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

Name

       termkey_get_fd - obtain the file descriptor for the terminal

Return Value

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

See Also

termkey_new(3), termkey_get_flags(3), termkey(7)

                                                                                               TERMKEY_GET_FD(3)

Synopsis

#include<termkey.h>inttermkey_get_fd(TermKey*tk);

       Link with -ltermkey.

See Also