TERMKEY_SET_FLAGS(3)

✨ TERMKEY_SET_FLAGS(3) ✨

okay bestie, gather round πŸ’– this one lives in the Library Functions Manual and it's literally just about controlling the operational flags on your termkey(7) vibe. short page, big energy, let's go πŸŽ€


🌸 NAME 🌸

termkey_set_flags, termkey_get_flags β€” control the operational flags πŸŽ›οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <termkey.h>

void termkey_set_flags(TermKey *tk, int newflags);
int termkey_get_flags(TermKey *tk);

Link with -ltermkey.

fr fr do not forget the -ltermkey at link time, she will not compile without it πŸ’€

πŸ’… DESCRIPTION πŸ’…

termkey_set_flags() does exactly what it says on the tin, no cap β€” it takes the set of operation flags inside your termkey(7) instance and swaps them out for whatever you passed in as newflags. new flags, who dis πŸ’β€β™€οΈ

termkey_get_flags() is the lil peek-behind-the-curtain function 🫢 it hands you back whatever value got set by the last call to termkey_set_flags(), OR β€” and this is the cute part β€” the value that was given to the constructor if nobody's called the setter yet. so it always knows something, she's never empty πŸ’–


🌈 RETURN VALUE 🌈

termkey_set_flags() returns no value. nothing. void. she gives nothing and that's her right πŸ‘‘

termkey_get_flags() returns the current operational flags, which is the whole point of her existence and honestly iconic ⭐


πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page bestie, short and sweet, we ate πŸ“πŸ’… mwah πŸ’œ

signing off from the Library Functions Manual, this was TERMKEY_SET_FLAGS(3) β€” stay flaggy, stay slay βœ¨πŸŽ€