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 π
termkey_new(3)termkey_get_flags(3)termkey(7)
π 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. π
π¦ where this page comes from
- alpine 3.24: libtermkey-doc 0.22-r4 Β· MIT
- debian trixie: libtermkey-dev 0.22-2+b1 Β· MIT
- epel 10: libtermkey-devel 0.22-2.el10_0 Β· MIT
- epel 9: libtermkey-devel 0.22-2.el9 Β· MIT
- fedora 43: libtermkey-devel 0.22-11.fc43 Β· MIT
- fedora 43: libtermkey-devel 0.22-11.fc43 Β· MIT
- fedora 44: libtermkey-devel 0.22-12.fc44 Β· MIT
- fedora 44: libtermkey-devel 0.22-12.fc44 Β· MIT
- nixos 26.05: libtermkey 0.22
- nixpkgs unstable: libtermkey 0.22
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- opensuse-leap 16.0: libtermkey-devel 0.22-bp160.1.11 Β· MIT
- ubuntu questing: libtermkey-dev 0.22-2
- ubuntu resolute: libtermkey-dev 0.22-2build1 Β· MIT
- ubuntu stonking: libtermkey-dev 0.22-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms