TICKIT_TERM_GET_INPUT_FD(3)

✨ TICKIT_TERM_SET_INPUT_FD ✨

okay so bestie, we're in the Library Functions Manual πŸ’– and this is the page for tickit_term_set_input_fd and tickit_term_get_input_fd, the duo that handles terminal input. one of them is lowkey problematic though, and we're gonna talk about it. 🫢


🌸 NAME 🌸

tickit_term_set_input_fd, tickit_term_get_input_fd β€” manage terminal input πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

void tickit_term_set_input_fd(TickitTerm *tt, int fd);
int tickit_term_get_input_fd(TickitTerm *tt);

Link with -ltickit.


πŸ’… DESCRIPTION πŸ’…

so. tickit_term_set_input_fd() β€” and I need you to hear me when I say this β€” is discouraged and applications should not be using it. like, at all. it's giving deprecated behavior energy, no cap. πŸ’€

the glow-up move instead? use the open and input_fd fields of the TickitTermBuilder struct that you hand over to tickit_term_build(3). that's the main character path. ✨

tickit_term_get_input_fd() is the chill one β€” it just hands you back the input file descriptor that's currently associated, or -1 if literally none has been set. that's it. that's the whole vibe check. 🌈


⭐ RETURN VALUE ⭐

tickit_term_get_input_fd() returns a file descriptor, or -1. periodt. πŸ‘‘


πŸ“ SEE ALSO πŸ“


okay that's the whole page, you ate it fr fr πŸ§šπŸ’œ and just so we're keeping it πŸ’― β€” this whole thing lives under TICKIT_TERM_SET_INPUT_FD(3) in the Library Functions Manual. that's the sign-off, mwah, go read tickit_term_build(3) instead of using the discouraged one bestie 😭🌸