TERMKEY_GET_FD(3)

okay so welcome to TERMKEY_GET_FD(3) from the Library Functions Manual β€” this is lowkey the most chill page ever. πŸ’…

✨ NAME ✨

termkey_get_fd β€” obtain the file descriptor for the terminal πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <termkey.h>

int termkey_get_fd(TermKey *tk);

Link with -ltermkey.

πŸ’– DESCRIPTION πŸ’–

okay so termkey_get_fd() returns the file descriptor that the termkey(7) instance is using to read bytes from. That's it. That's the whole main character. It's giving "here's the fd, bestie" and honestly we're obsessed. ✨

πŸ”₯ RETURN VALUE πŸ”₯

termkey_get_fd() returns the current file descriptor. But if there's no file descriptor associated with this instance, bestie, you get -1. Not the slay we wanted, but it's the truth. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– That's the page, bestie β€” TERMKEY_GET_FD(3) from the Library Functions Manual. Date? Not on this footer, so that's the whole vibe. Periodt. πŸ’