---
name: "unibi_from_term"
section: "3"
platform: "linux"
package: "unibilium"
version: "2.1.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/unibi_from_term"
---

# unibi\_from\_term(3)

read a terminfo entry for a named terminal

## NAME

unibi\_from\_term - read a terminfo entry for a named terminal

## SYNOPSIS

```
 #include <unibilium.h>

 unibi_term *unibi_from_term(const char *name);
```

## DESCRIPTION

This function locates the terminfo file for *name*, then calls `"unibi_from_file"`.

It looks in the following places:

- 1\.

  If the environment variable `"TERMINFO"` is set, it is interpreted as the name of the directory to search for local terminal definitions before checking in the standard place.

- 2\.

  Otherwise, `"$HOME/.terminfo"` is tried.

- 3\.

  If that was not successful and `"TERMINFO_DIRS"` is set, it is interpreted as a colon-separated list of directories to search.

- 4\.

  If `"TERMINFO_DIRS"` is not set, a compiled-in fallback (`"unibi_terminfo_dirs"`) is used instead.

## RETURN VALUE

See [**unibi\_from\_file**(3)](/unibi_from_file/3.md).

## SEE ALSO

[**unibilium.h**(3)](/unibilium.h/3.md), [**unibi\_from\_file**(3)](/unibi_from_file/3.md), [**unibi\_terminfo\_dirs**(3)](/unibi_terminfo_dirs/3.md), [**unibi\_destroy**(3)](/unibi_destroy/3.md)
