TERMKEY_SET_WAITTIME(3)

πŸ’– TERMKEY_SET_WAITTIME πŸ’–

okay bestie, we're in the Library Functions Manual, section 3, and the page is literally called TERMKEY_SET_WAITTIME(3). yes, that's a mouthful. we're doing it. 🫢


✨ NAME ✨

termkey_set_waittime, termkey_get_waittime β€” control the wait time for multibyte sequences


🌸 SYNOPSIS 🌸

#include <termkey.h>

void termkey_set_waittime(TermKey *tk, int msec);
int termkey_get_waittime(TermKey *tk);

Link with -ltermkey.

not me reminding you to link with -ltermkey... but like, link with -ltermkey. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so termkey_set_waittime() sets the number of milliseconds that termkey_waitkey(3) will wait for the remaining bytes of a multibyte sequence, if it detects the start of a partially-complete one. that's the whole vibe. it's the "hold up, more bytes are coming, gimme a sec" timer. ⏳

and termkey_get_waittime() returns the value set by the last call to termkey_set_waittime(), or the default value if a different one has not been set. yes, "a different" β€” that's literally what the original says, we're keeping it, no cap. πŸ™ˆ


πŸ’€ RETURN VALUE πŸ’€

termkey_set_waittime() returns no value. like, nothing. void. she gives you zero information back, she just does the thing. iconic behaviour honestly. πŸ’…

termkey_get_waittime() returns the current wait time in milliseconds. a whole number, bestie. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! πŸ’–βœ¨πŸŽ€ go forth and set your waittimes responsibly. this has been TERMKEY_SET_WAITTIME(3) straight outta the Library Functions Manual β€” ily, mwah πŸ«ΆπŸŒΈπŸ¦‹