unibi_get_bool(3)
π unibi_get_bool β access the capabilities of a terminal object π
okay bestie, welcome to the unibi_get_bool(3) page β it lives in the unibilium manual, and it's literally the little keychain that lets you peek at and poke the capabilities of a terminal object. π
β¨ NAME β¨
unibi_get_bool, unibi_set_bool, unibi_get_num, unibi_set_num, unibi_get_str, unibi_set_str β 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 the whole vibe here is get and set β booleans, numerics, and strings, that's the capability trio, and you're grabbing them off a terminal object. π
the way it works: absent numeric capabilities are represented as -1, and absent string capabilities as "NULL". so if a numeric gives you -1, that's not a number, bestie, that's a lack of a number. and a "NULL" string means nobody's home. π
π¨ okay this next part is IMPORTANT, no cap:unibi_set_strsimply stores the pointer it is given β it will not freexand it will not make a copy of the string. like. it just holds onto your pointer. so don't go freeing that string out from under it unless you want chaos. π
πΈ SEE ALSO πΈ
signed, sealed, delivered by unibilium-2.1.4, dated 2026-09-07 β mwah, go forth and read your terminal capabilities ππ¦
π¦ 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