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

NAME

6       unibi_from_mem - construct a terminal object from a compiled terminfo
7       entry
8

SYNOPSIS

10        #include <unibilium.h>
11
12        unibi_term *unibi_from_mem(const char *p, size_t n);
13

DESCRIPTION

15       This function parses a compiled terminfo entry that starts at p and is
16       n bytes long, and constructs a "unibi_term" object from it. When you're
17       done with this object, you should call "unibi_destroy" to free it.
18
19       "unibi_from_mem" parses both the traditional ncurses terminfo format
20       (starting with the bytes "1A 01") and the newer "wide integer" format
21       (starting with the bytes "1E 02").
22

RETURN VALUE

24       A pointer to a new "unibi_term". In case of failure, "NULL" is returned
25       and "errno" is set.
26

ERRORS

28       "EINVAL"
29           The bytes p points at don't look like a valid terminfo entry.
30
31       "EFAULT"
32           n is too small for a valid terminfo entry.
33

SEE ALSO

35       unibilium.h(3), unibi_dump(3), unibi_destroy(3), unibi_from_fp(3),
36       unibi_from_fd(3), unibi_from_file(3), unibi_from_term(3),
37       unibi_from_env(3)
38
39
40
41unibilium-2.0.0                   2018-02-08            doc::unibi_from_mem(3)
Impressum