1doc::unibi_set_ext_num(3) unibilium doc::unibi_set_ext_num(3)
2
3
4
6 unibi_get_ext_bool, unibi_set_ext_bool, unibi_get_ext_num,
7 unibi_set_ext_num, unibi_get_ext_str, unibi_set_ext_str - access the
8 extended capabilities of a terminal object
9
11 #include <unibilium.h>
12
13 int unibi_get_ext_bool(const unibi_term *ut, size_t i);
14 int unibi_get_ext_num(const unibi_term *ut, size_t i);
15 const char *unibi_get_ext_str(const unibi_term *ut, size_t i);
16
17 void unibi_set_ext_bool(unibi_term *ut, size_t i, int b);
18 void unibi_set_ext_num(unibi_term *ut, size_t i, int v);
19 void unibi_set_ext_str(unibi_term *ut, size_t i, const char *s);
20
22 Get/set extended boolean, numeric, and string capabilities. i is the
23 index of the extended capability to act on; it must be less than
24 unibi_count_ext_bool(ut), unibi_count_ext_num(ut), or
25 unibi_count_ext_str(ut), respectively.
26
27 Note that "unibi_set_ext_str" simply stores the pointer it is given; it
28 will not free s or make a copy of the string.
29
31 unibilium.h(3)
32
33
34
35unibilium-2.1.1 2023-01-21 doc::unibi_set_ext_num(3)