---
name: "tickit_term_get_termtype"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_term_get_termtype"
---

# tickit\_term\_get\_termtype(3)

returns the terminal type

## 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

**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)](/tickit_term_build/3.md), 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.

## RETURN VALUE

**tickit\_term\_get\_termtype**() returns a string buffer pointer.

## SEE ALSO

[**tickit\_term\_build**(3)](/tickit_term_build/3.md), [**tickit\_term**(7)](/tickit_term/7.md), [**tickit**(7)](/tickit/7.md)
