TICKIT_TER...DRIVERNAME(3)

πŸ’– TICKIT_TER...DRIVERNAME(3) πŸ’–

okay bestie, welcome to the Library Functions Manual β€” yes it's a 3 page, yes that means C library functions, and yes we're gonna have fun with it 🌸


✨ NAME ✨

tickit_term_get_drivername β€” returns the terminal driver name πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

const char *tickit_term_get_drivername(TickitTerm *tt);

Link with -ltickit. πŸ”₯


πŸ’… DESCRIPTION πŸ’…

okay so. tickit_term_get_drivername() hands you back the string name of the driver for this terminal type. that's it. that's the whole job. she's a one-task icon πŸ‘‘

and here's the tea on what string you actually get:

  • it'll be "xterm" for terminal types supported by the xterm driver ✨
  • or it'll be "terminfo" for the others, which are supported instead by the terminfo driver 🫢
⚠️ NO CAP, LISTEN UP: the returned value points directly into the buffer allocated by the TickitTerm instance itself. so do NOT modify it and do NOT free it. not yours. hands off. πŸ™ˆ that buffer is not your business, bestie πŸ’€

🌈 RETURN VALUE 🌈

tickit_term_get_drivername() returns a string buffer pointer. that's the vibe. one pointer, zero drama ⭐


πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ that's the whole page. it came from the Library Functions Manual, section 3, under the header TICKIT_TER...DRIVERNAME(3) β€” go forth and get those driver names, you absolute main character πŸ§šπŸ’œ