doc::unibi\_from\_term(3) unibilium doc::unibi\_from\_term(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```
 #include <unibilium.h>
 
 unibi_term *unibi_from_term(const char *name);
```

# [DESCRIPTION](#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](#RETURN_VALUE)

See [**unibi\_from\_file**(3)](/man/os/unibilium/unibi_from_file.3).

# [SEE ALSO](#SEE_ALSO)

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

2026-08-30 unibilium-2.1.4

---

Document: unibi_from_term(3) from unibilium 2.1.4-r0 (Chainguard OS)
Source: https://github.com/neovim/unibilium
