TICKIT_TERM_SET_OUTPUT_FD(3)

πŸ’– NAME πŸ’–

tickit_term_set_output_fd, tickit_term_get_output_fd β€” the two functions that handle terminal output, bestie. Setting it and getting it. That's the whole vibe. ✨


🌸 SYNOPSIS 🌸

#include <tickit.h>

void tickit_term_set_output_fd(TickitTerm *tt, int fd);
int tickit_term_get_output_fd(TickitTerm *tt);

Link with -ltickit. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so first things first, tickit_term_set_output_fd() is discouraged and honestly? applications should not be using it. like at all. πŸ™ˆ instead, go look at the open and output_fd fields of the TickitTermBuilder struct, which you pass along to tickit_term_build(3). that's the way. that's the move. πŸ’…

tickit_term_get_output_fd() is the chill one β€” it just hands you back the output file descriptor that's currently associated, or -1 if literally none has been set. no cap. 🫢


⭐ RETURN VALUE ⭐

tickit_term_get_output_fd() returns a file descriptor, or -1. that's it, that's the whole return. simple, iconic, we love her. πŸŽ€


🌈 SEE ALSO 🌈


and that's a wrap on this one, babe πŸ’– this lil page lives in the Library Functions Manual, filed under TICKIT_TER...T_OUTPUT_FD(3) β€” go forth and output responsibly, mwah πŸŽ€βœ¨