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_str just stores the pointer it is given. that's it. it will not free s, 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