TICKIT_TERMCTL_NAME(3)
π TICKIT_TERMCTL_NAME π
okay bestie, welcome to TICKIT_TERMCTL_NAME(3) from the Library Functions Manual β yes it's a manpage, yes it's about terminal controls, and yes we're gonna make it make sense. no cap.
β¨ NAME β¨
tickit_termctl_name β bestie, it just returns the name of a terminal control. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
#include <tickit.h>
const char * tickit_termctl_name(TickitTermCtl ctl);
TickitTermCtl tickit_termctl_lookup(const char * name);
TickitType tickit_termctl_type(TickitTermCtl ctl);
and don't forget to link with -ltickit or nothing happens, fr fr π«Ά
β¨ DESCRIPTION β¨
so, three little functions, three little jobs. let's go. π
tickit_termctl_name() hands you back the name of the terminal control you passed in. and these names? they're the lowercase strings that live in tickit_term(7). so like, if you know that page, you already know these. iykyk. β¨
tickit_termctl_lookup() is the glow-up in reverse β you give it a name, it gives you the matching control constant. but if that name isn't recognised? it returns -1. no constant for you, bestie. π
tickit_termctl_type() tells you what type the given terminal control is. it'll be one of these iconic constants:
TICKIT_TYPE_BOOLβ the value is an integer standing in for a simple boolean choice, where any nonzero value is true. to poke at it, usetickit_term_setctl_int(3)andtickit_term_getctl_int(3). simple, clean, slay. βTICKIT_TYPE_INTβ the value is an integer that represents a quantity, or a value from some particular enumeration. again:tickit_term_setctl_int(3)andtickit_term_getctl_int(3)are your girls. π’TICKIT_TYPE_STRβ the value is a string. for this one you usetickit_term_setctl_str(3). strings, we love her. πΈ
and for unrecognised control types, the function just returns 0. shrug. π
β¨ RETURN VALUE β¨
tickit_termctl_name()returns a constant string pointer. πtickit_termctl_lookup()returns a control constant, or-1. πtickit_termctl_type()returns a control type constant, or0. β
β¨ SEE ALSO β¨
go read those too, they're giving main character energy. π
okay that's the whole page!! this lil masterpiece lives in the tickit Library Functions Manual and signs off as TICKIT_TERMCTL_NAME(3) β and ngl, no date on this one, it's just timeless like that. π bye bestie, go name some terminal controls!! π¦πβ¨
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms