1doc::unibi_get_aliases(3)          unibilium         doc::unibi_get_aliases(3)
2
3
4

NAME

6       unibi_get_aliases, unibi_set_aliases - access the aliases of a terminal
7       object
8

SYNOPSIS

10        #include <unibilium.h>
11
12        const char **unibi_get_aliases(const unibi_term *ut);
13        void unibi_set_aliases(unibi_term *ut, const char **v);
14

DESCRIPTION

16       "unibi_get_aliases" returns the list of aliases from ut;
17       "unibi_set_aliases" sets it to v. The format of this list is like
18       "argv": a null-terminated vector of strings.
19
20       The contents of this list come from the ('|'-separated) name section in
21       terminfo entries. It's supposed to be a list of lowercase words or
22       abbreviations that refer to this terminal, the first one being the most
23       common name. The last part of the name section can be more verbose and
24       is not stored in the aliases list; it can be accessed with
25       "unibi_get_name".
26
27       Note that "unibi_set_aliases" simply stores the pointer it is given; it
28       will not free v or make a copy of it (or any of the strings it points
29       to).
30

RETURN VALUE

32       "unibi_get_aliases" returns a pointer to a null-terminated vector of
33       strings.
34

SEE ALSO

36       unibilium.h(3), unibi_get_name(3), unibi_set_name(3)
37
38
39
40unibilium-2.1.1                   2021-10-14         doc::unibi_get_aliases(3)
Impressum