unibi_add_ext_num(3)

unibi_add_ext_num3

Add extended capabilities to a terminal object

Usage

 #include <unibilium.h>
 size_t unibi_add_ext_bool(unibi_term *ut, const char *t, int b);
 size_t unibi_add_ext_num(unibi_term *ut, const char *t, int v);
 size_t unibi_add_ext_str(unibi_term *ut, const char *t, const char *s);

Overview

Add an extended boolean, numeric, or string capability with the specified name and value.

Note that these functions simply store any pointers they are given. They will not free t or s or copy any strings.

Return value

The return value is the index of the new capability, which can be used in unibi_get_ext_bool(3), unibi_set_ext_bool(3), etc. If an error occurs, "SIZE_MAX" is returned.

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.