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, andunibi_set_ext_str_namesimply store the pointer they are given. they will notfreesand 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
- 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