unibi_from_term(3)

unibi_from_term3

Read a terminfo entry for a named terminal

Usage

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

Overview

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).

Releases

6 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11–12
  4. 13
  5. Arch

From unibilium 2.1.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.