unibi_get_ext_num(3)
πΈ unibi_get_ext_num(3) β the unibilium extended-capabilities situation π
okay bestie so this is part of unibilium, the terminal-capability library, and this little family of functions is literally your all-access pass to the extended capabilities of a terminal object. yes queen, ext bools, ext nums, ext strings, get AND set. we love a full set. π«Ά
β¨ NAME β¨
unibi_get_ext_bool, unibi_set_ext_bool, unibi_get_ext_num, unibi_set_ext_num, unibi_get_ext_str, unibi_set_ext_str β these six icons are how you access the extended capabilities of a terminal object. that's the whole vibe. π
π SYNOPSIS π
#include <unibilium.h>
int unibi_get_ext_bool(const unibi_term *ut, size_t i);
int unibi_get_ext_num(const unibi_term *ut, size_t i);
const char *unibi_get_ext_str(const unibi_term *ut, size_t i);
void unibi_set_ext_bool(unibi_term *ut, size_t i, int b);
void unibi_set_ext_num(unibi_term *ut, size_t i, int v);
void unibi_set_ext_str(unibi_term *ut, size_t i, const char *s);
no cap, that's the whole header situation. π
π¦ DESCRIPTION π¦
so basically: get and set the extended boolean, numeric, and string capabilities. three flavors, get-or-set for each, six functions total, an absolute squad. π
i is the index of the extended capability you're acting on. and here's the rule, bestie, do not skip this: it must be less than unibi_count_ext_bool(ut), unibi_count_ext_num(ut), or unibi_count_ext_str(ut) β respectively. like, match the count to the kind of capability you're poking at. bool index vs unibi_count_ext_bool(ut), num index vs unibi_count_ext_num(ut), str index vs unibi_count_ext_str(ut). stay in your lane and everything is iconic. π
warning, bestie, fr fr:unibi_set_ext_strjust stores the pointer it is given. that's it. it will not frees, and it will not make a copy of the string. so if you hand it a pointer, that pointer is now the library's whole personality β keep it alive, keep it valid, and don't go freeing it behind its back. π
π SEE ALSO π
okay that's the page!! go forth and index responsibly, queen. π
this masterpiece of a manual page is from unibilium-2.1.4, dated 2026-09-07, and honestly? it ate. πβ¨ no notes, periodt. π
π¦ where this page comes from
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms