TICKIT_TERM_SETCTL_INT(3)

πŸ’– NAME πŸ’–

okay so bestie, meet tickit_term_setctl_int, tickit_term_setctl_str β€” they set an integer or string terminal control. yes that's the whole vibe. this is from the Library Functions Manual, page TICKIT_TERM_SETCTL_INT(3) if you're keeping receipts. πŸŽ€


✨ SYNOPSIS ✨

#include <tickit.h>

bool tickit_term_getctl_int(TickitTerm *tt, TickitTermCtl ctl, int *value);
bool tickit_term_setctl_int(TickitTerm *tt, TickitTermCtl ctl, int value);
bool tickit_term_setctl_str(TickitTerm *tt, TickitTermCtl ctl, const char *value);

and when you link it, you link it like this:

-ltickit
ngl if you forget -ltickit the linker is gonna be so dramatic about it. don't do that to yourself. 😭

🌸 DESCRIPTION 🌸

tickit_term_setctl_int() does a terminal control operation β€” it sets the value of a numeric terminal control option. tickit_term_setctl_str() sets the value of a string terminal control option. and tickit_term_getctl_int() is the little gossip, it obtains the value of a terminal control setting.

want the full rundown of every possible TickitTermCtl value and what each one means? that's all living over in tickit_term(7). go look, it's giving reference material. πŸ‘‘


πŸ’… RETURN VALUE πŸ’…

  • tickit_term_getctl_int() returns a true value if it recognised the requested control and managed to return the current value of it; false if not.
  • tickit_term_setctl_int() and tickit_term_setctl_str() return a true value if they recognised the requested control and managed to request the terminal to change it; false if not.

so like β€” true means "yeah bestie, handled it", false means "no idea what you're asking for, or it didn't work out". that's the whole vibe check. ✨


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the page, bestie β€” straight from the Library Functions Manual, filed under TICKIT_TERM_SETCTL_INT(3). go set some controls, you absolute icon. πŸ’–βœ¨πŸ«Ά