unibi_get_aliases(3)
π unibi_get_aliases β bestie edition π
okay so this is a page from the unibilium manual, section 3, and we're talking about the <rainbow>unibi_get_aliases</rainbow> family. strap in, it's actually so cute.
β¨ NAME β¨
unibi_get_aliases, unibi_set_aliases β the way to get at (and set!) the aliases of a terminal object π
β¨ SYNOPSIS β¨
#include <unibilium.h>
const char **unibi_get_aliases(const unibi_term *ut);
void unibi_set_aliases(unibi_term *ut, const char **v);
like, look at those signatures. so clean. so iconic. π
β¨ DESCRIPTION β¨
okay bestie, here's the tea π
unibi_get_aliases returns the list of aliases from ut. unibi_set_aliases sets it to v. and the format of this list? it's literally just like argv β a null-terminated vector of strings. same energy, no cap. π«Ά
and where does the contents of this list even come from? from the ('|'-separated) name section in terminfo entries. it's supposed to be a list of lowercase words or abbreviations that refer to this terminal, and the first one is the most common name β she's the main character, obviously. π
lowkey important: the last part of the name section can be more verbose, and that bit is NOT stored in the aliases list. if you want it, you gotta go get it with unibi_get_name. iykyk. π
β οΈ and now the serious part, bestie, listen up βunibi_set_aliasessimply stores the pointer it is given. it will not freev, and it will not make a copy of it (or of any of the strings it points to). not a single copy. none. so if you free that memory later, you are on your own, fr fr. π
β¨ RETURN VALUE β¨
unibi_get_aliases returns a pointer to a null-terminated vector of strings. that's the whole vibe. β
β¨ SEE ALSO β¨
go read those too, they're all part of the same little friend group π¦πΈ
okay that's the whole page!! this was unibilium-2.1.4, dated 2026-09-07, and honestly? she ate. 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