TICKIT_TERM_CTLNAME(3)
π TICKIT_TERM_CTLNAME π
okay bestie, welcome to tickit_term_ctlname(3) β it lives in the Library Functions Manual (section 3, the "functions" girlies), and it's literally all about naming terminal controls and looking them up. no cap, it's a tiny page but it's iconic. β¨
π NAME π
tickit_term_ctlname β return the name of a terminal control
πΈ SYNOPSIS πΈ
#include <tickit.h>
const char * tickit_term_ctlname(TickitTermCtl ctl);
TickitTermCtl tickit_term_lookup_ctl(const char * name);
TickitType tickit_term_ctltype(TickitTermCtl ctl);
Link with -ltickit.
π DESCRIPTION π
okay so, three little functions, three little jobs. let's go π«Ά
tickit_term_ctlname() hands you back the name of the terminal control you passed in. and these names? they're the lowercase strings, the exact ones listed over in tickit_term(7). so if you're like "what do they even call this thing" β boom, answered. π
tickit_term_lookup_ctl() does the reverse glow-up: you give it a name, it gives you the control constant. but if the name isn't recognised? it returns -1. no constant for you, sorry babe. π
tickit_term_ctltype() tells you the type of a given terminal control, and it comes back as one of these constants:
TICKIT_TYPE_BOOLβ the value is an integer standing in for a simple boolean choice, where any nonzero value counts as true. reach fortickit_term_setctl_int(3)andtickit_term_getctl_int(3)for this one. πTICKIT_TYPE_INTβ the value is an integer representing a quantity, or a value from some particular enumeration. same duo:tickit_term_setctl_int(3)andtickit_term_getctl_int(3). π₯TICKIT_TYPE_STRβ the value is a string. usetickit_term_setctl_str(3)for this vibe. π¦
and for control types it doesn't recognise? the function returns 0. that's it, that's the whole personality. β¨
π RETURN VALUE π
tickit_term_ctlname()returns a constant string pointer. πtickit_term_lookup_ctl()returns a control constant, or-1. πtickit_term_ctltype()returns a control type constant, or0. π
π SEE ALSO π
and that's the whole page, bestie!! mwah π this was TICKIT_TERM_CTLNAME(3) from the Library Functions Manual β the tickit crew's section-3 page, dated the way man pages are dated, and yes, the title is still <rainbow>TICKIT_TERM_CTLNAME(3)</rainbow> at the bottom too because tradition is tradition. slay, go name some terminal controls. πβ¨
π¦ where this page comes from
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms