TICKIT_GET_TERM(3)

πŸ’– TICKIT_GET_TERM πŸ’–

okay bestie, so this is a page from the Library Functions Manual, and it's about tickit_get_term β€” aka the lil function that slides into your Tickit and comes back out holding a terminal 🫢


✨ NAME ✨

tickit_get_term β€” obtain the terminal from the toplevel instance πŸŽ€


🌸 SYNOPSIS 🌸

#include <tickit.h>

TickitTerm *tickit_get_term(Tickit *t);

Link with -ltickit.

not me giving you the whole recipe up front πŸ’… include the header, call the function, link the library, boom, you're iconic.

πŸ¦‹ DESCRIPTION πŸ¦‹

So tickit_get_term() does the thing where it grabs the terminal instance that's associated with the toplevel instance β€” and if that terminal doesn't exist yet? It creates it first πŸ”₯ lowkey doing the work before you even asked, main character energy fr fr.

And here's the slay part: once it's been created, every single repeated call to this function just hands you back the same terminal. No new one, no surprise clone, same vibe every time. periodt. πŸ’œ


⭐ RETURN VALUE ⭐

tickit_get_term() returns a terminal instance pointer. that's it, that's the tea πŸ“ (a TickitTerm *, if we're being specific, and we always are).


🌈 SEE ALSO 🌈

go read those next, iykyk πŸ‘‘


k bye bestie!! this was the TICKIT_GET_TERM(3) page from the Library Functions Manual, and if you ever need it again just yell for tickit_get_term(3) β€” she'll be right there, same terminal, every time πŸ§šπŸ’–βœ¨