TICKIT_TERM_GET_TERMTYPE(3)

πŸ’– TICKIT_TERM_GET_TERMTYPE πŸ’–

okay bestie, welcome to tickit_term_get_termtype(3) β€” it lives in the Library Functions Manual and it's literally the tiniest little slay. it just tells you what kind of terminal you're talking to. that's it. that's the whole vibe. πŸ¦‹


✨ NAME ✨

tickit_term_get_termtype β€” returns the terminal type πŸŽ€


🌸 SYNOPSIS 🌸

#include <tickit.h>

const char *tickit_term_get_termtype(TickitTerm *tt);

Link with -ltickit. 🫢


πŸ’… DESCRIPTION πŸ’…

okay so tickit_term_get_termtype() returns the string name of the type of the terminal. that's the whole job. main character energy, minimal effort. ✨

and which string is it, bestie? it's the string that was set in the TickitTermBuilder struct passed to tickit_term_build(3), or β€” if nobody set one β€” the one that got fetched from the TERM environment variable. 🌈

🚨 IMPORTANT, no cap: the returned value points directly into the buffer allocated by the TickitTerm instance itself. so that buffer must not be modified or freed. do not touch it. do not free it. it's not yours, it's the TickitTerm's. hands off. πŸ™ˆ

πŸ‘‘ RETURN VALUE πŸ‘‘

tickit_term_get_termtype() returns a string buffer pointer. iconic. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, periodt. this was TICKIT_TERM_GET_TERMTYPE(3) from the Library Functions Manual β€” go read the SEE ALSOs if you wanna keep the streak going, bestie πŸ’œπŸ§š