unibi_set_ext_str(3)

πŸ’– unibi_set_ext_str β€” extended capabilities, but make it a whole vibe πŸ’–

okay bestie, so this is the unibilium girlies' guide to the extended capabilities of a terminal object 🫢 it lives in the unibi_set_ext_str(3) corner of the manual, and honestly? she's giving very specific but very powerful.


✨ 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 β€” access the extended capabilities of a terminal object πŸ‘‘


✨ 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);

look at that lineup 😭 six little icons, all doing the most for your terminal. πŸ’…


✨ DESCRIPTION ✨

So basically: get/set extended boolean, numeric, and string capabilities. that's the whole gig, no cap. πŸŽ€

i is the index of the extended capability you're acting on β€” think of it as her seat number at the function. and the rule is strict, bestie: it must be less than unibi_count_ext_bool(ut), unibi_count_ext_num(ut), or unibi_count_ext_str(ut), respectively. like, matching each one to its own counter, obviously. don't mix them up, that's not the vibe. πŸ™ˆ

not me needing to say this but: unibi_set_ext_str simply stores the pointer it is given. it will not free s and it will not make a copy of the string. so like, the pointer is yours to look after, periodt. if the string it's pointing at goes away, that's a you problem, not hers. πŸ’€

✨ SEE ALSO ✨


and that's the tea, bestie πŸ“ go forth and set those extended capabilities, you absolute icon. mwah πŸ’œ

this page came to you from unibilium-2.1.4, dated 2026-09-07 β€” yeah, she's fresh ✨ don't forget her πŸŽ€

πŸ“¦ where this page comes from