DOKK / manpages / debian 12 / libtickit-dev / tickit_term_get_termtype.3.en
TICKIT_TERM_GET_TERMTYPE(3) Library Functions Manual TICKIT_TERM_GET_TERMTYPE(3)

tickit_term_get_termtype - returns the terminal type

#include <tickit.h>

const char *tickit_term_get_termtype(TickitTerm *tt);

Link with -ltickit.

tickit_term_get_termtype() returns the string name of the type of the terminal. This is the string that set in the TickitTermBuilder struct to tickit_term_build(3), or was fetched from the TERM environment variable. The returned value points directly into the buffer allocated by the TickitTerm instance itself; this buffer must not be modified or freed.

tickit_term_get_termtype() returns a string buffer pointer.

tickit_term_build(3), tickit_term(7), tickit(7)