unibi_set_str(3)
β¨ unibi_set_str(3) β¨
okay bestie, so this is a page from the unibilium manual β that's the terminal-capability library, the one that knows literally everything about what your terminal can and can't do π . We're talking about the little getter/setter squad that reads and writes capabilities on a terminal object, and honestly? iconic.
πΈ NAME πΈ
unibi_get_bool, unibi_set_bool, unibi_get_num, unibi_set_num, unibi_get_str, unibi_set_str β the way these functions access the capabilities of a terminal object π«Ά
π SYNOPSIS π
#include <unibilium.h>
int unibi_get_bool(const unibi_term *ut, enum unibi_boolean b);
void unibi_set_bool(unibi_term *ut, enum unibi_boolean b, int x);
int unibi_get_num(const unibi_term *ut, enum unibi_numeric n);
void unibi_set_num(unibi_term *ut, enum unibi_numeric n, int x);
const char *unibi_get_str(const unibi_term *ut, enum unibi_string s);
void unibi_set_str(unibi_term *ut, enum unibi_string s, const char *x);
π¦ DESCRIPTION π¦
So basically, these are your get/set girlies for boolean, numeric, and string capabilities. Three flavours, one vibe. Get them, set them, slay β¨
Now, about the absent ones β because sometimes a capability just isn't there and that's valid:
- numeric capabilities that are absent show up as
-1 - string capabilities that are absent show up as
"NULL"
β οΈ ok important, no cap:"unibi_set_str"simply stores the pointer it is given. It will not freex, and it will not make a copy of the string. It just holds onto your pointer. So likeβ¦ don't let that string die on you, bestie π that's on you to manage, fr fr.
π SEE ALSO π
unibilium.h(3)
and that's the whole page, you ate that π
sign-off time: this lil masterpiece is from unibilium-2.1.4, dated 2026-09-07 β mwah, 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