unibi_set_ext_str_name(3)

πŸ’– unibi_set_ext_str_name(3) πŸ’–

okay bestie, so this one lives in the unibilium manual, and it's literally all about peeking at (and renaming!) the names of a terminal's extended capabilities. yes, the names of the capabilities. not the values. the names. stay with me 🫢


✨ NAME ✨

unibi_get_ext_bool_name</p>, unibi_set_ext_bool_name</p>, unibi_get_ext_num_name</p>, unibi_set_ext_num_name</p>, unibi_get_ext_str_name</p>, unibi_set_ext_str_name</p> β€” access the names of extended capabilities of a terminal object 🌸

like. that's the whole job. get and set. that's it. that's the function.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <unibilium.h>

const char *unibi_get_ext_bool_name(const unibi_term *ut, size_t i);
const char *unibi_get_ext_num_name(const unibi_term *ut, size_t i);
const char *unibi_get_ext_str_name(const unibi_term *ut, size_t i);

void unibi_set_ext_bool_name(unibi_term *ut, size_t i, const char *s);
void unibi_set_ext_num_name(unibi_term *ut, size_t i, const char *s);
void unibi_set_ext_str_name(unibi_term *ut, size_t i, const char *s);

six functions, three flavours (bool, num, str), one <unibilium.h> include. iconic honestly ✨


πŸ‘‘ DESCRIPTION πŸ‘‘

So the tea is: you're getting and/or setting the names of extended boolean, numeric, and string capabilities. πŸ’…

i is the index of the extended capability you wanna act on β€” the little spot in the list, bestie. and it's gotta be less than the matching count, or it's not valid:

  • less than unibi_count_ext_bool(ut) for the bool ones,
  • less than unibi_count_ext_num(ut) for the num ones,
  • less than unibi_count_ext_str(ut) for the str ones.

respectively. (that word is doing a lot of work but she's earning it.) πŸŽ€

⚠️ BIG ONE, NO CAP: unibi_set_ext_bool_name, unibi_set_ext_num_name, and unibi_set_ext_str_name simply store the pointer they are given. they will not free s and they will not make a copy of the string. 😭

so like… whatever s points at? that's what lives in there now. if that memory dips, gets reused, or gets freed out from under you, your capability name is gone gone. that's on you, not on unibilium. protect your pointers, bestie, fr fr πŸ™ˆ


🌈 SEE ALSO 🌈


and that's the whole vibe check β€” this page is from unibilium-2.1.4, dated 2026-09-07, so go forth and name your extended capabilities responsibly, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from