unibi_add_ext_num(3)
β¨ unibi_add_ext_num(3) β¨
okay bestie, so this page is literally about unibi_add_ext_num(3) β but wait, it's a whole trio situation. We're talking unibi_add_ext_bool, unibi_add_ext_num, and unibi_add_ext_str. Three icons, one mission: adding extended capabilities to a terminal object. π
π NAME π
unibi_add_ext_bool, unibi_add_ext_num, unibi_add_ext_str β adding extended capabilities to a terminal object, no cap π«Ά
πΈ SYNOPSIS πΈ
#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);
π¦ DESCRIPTION π¦
So what's the vibe? You're adding an extended boolean, numeric, or string capability with the name and value you specify. That's it, that's the whole thing. Slay. β¨
β οΈ okay important, do NOT skip this part: these functions simply store any pointers they are given. They will not freetors, and they will not copy any strings. So like, the pointer you hand over is the pointer they're keeping. Forever. It's giving "you break it, you bought it" energy. π Be careful with your lifetimes, bestie.
π RETURN VALUE π
The return value is the index of the new capability β which you can then use in unibi_get_ext_bool(3), unibi_set_ext_bool(3), etc. iykyk, super useful. π
If an error occurs, SIZE_MAX is returned. π (yes, that's the error signal, not a real index, don't get it twisted)
π SEE ALSO π
unibilium.h(3)unibi_del_ext_bool(3)unibi_del_ext_num(3)unibi_del_ext_str(3)
and that's the whole page, bestie, you ate that π β¨
this little masterpiece lives in unibilium-2.1.4, dated 2026-09-07, and it was brought to you by the unibi_add_ext_num(3) girlies. go forth and add your extended capabilities responsibly ππ¦π
π¦ 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