TICKIT_TER...T_READABLE(3)

πŸ‘‘ tickit_term_input_readable β€” read more data from the terminal πŸ’–

okay bestie, welcome to the TICKIT_TER...T_READABLE(3) page from the Library Functions Manual ✨ this is the one that goes and grabs the bytes your terminal is sitting on, iykyk πŸ¦‹


🌸 NAME 🌸

tickit_term_input_readable β€” read more data from the terminal</p> πŸ’…


✨ SYNOPSIS ✨

#include <tickit.h>

void tickit_term_input_readable(TickitTerm *tt);

Link with -ltickit.


πŸ’œ DESCRIPTION πŸ’œ

so basically, tickit_term_input_readable() is how you tell the terminal instance "hey girl, there's more data available on the input file descriptor β€” or there might be β€” go get it" and then it, like, reads it 🫢

heads up bestie: calling this function may block if the underlying file descriptor is in blocking mode. not a drill, it will literally just sit there waiting 😭

and because it actually reads stuff, it can result in TICKIT_EV_KEY or TICKIT_EV_MOUSE events being invoked πŸ”₯ so like, real events, real consequences, main character energy fr fr.

this function also invokes deferred TICKIT_EV_RESIZE events β€” but only if they've been enabled by tickit_term_observe_sigwinch(3) ⭐ no enabling, no resize events, that's the vibe check.


πŸŽ€ RETURN VALUE πŸŽ€

tickit_term_input_readable() returns no value. nothing. void. it's giving absolutely nothing and that's correct πŸ’–


🌈 SEE ALSO 🌈


okay that's the whole page, no cap πŸ’… this was TICKIT_TER...T_READABLE(3) from the Library Functions Manual, same name at the top and the bottom because the page tag said so, and that's the sign-off bestie β€” go read your terminal, stay hydrated, mwah πŸ§šπŸ’œ