unibi_set_name(3)
β¨ NAME β¨
okay so bestie, welcome to unibi_get_name and unibi_set_name β they're your lil' access pass to the name of a terminal object. that's it. that's the vibe. π
π SYNOPSIS π
#include <unibilium.h>
const char *unibi_get_name(const unibi_term *ut);
void unibi_set_name(unibi_term *ut, const char *s);
π¦ DESCRIPTION π¦
so like, unibi_get_name gets the name from ut, and unibi_set_name sets the name to s. iconic duo behavior, honestly. one grabs, one sets, they don't overlap, they don't fight. π
β οΈ okay this part is IMPORTANT and i need you to actually read it: unibi_set_name simply stores the pointer it is given. it will not free s, and it will not make a copy of the string. not even a little one. it just holds onto your pointer and trusts you forever. so if s goes away or changes laterβ¦ that's on you bestie π no cap. keep that string alive, okay? π«Ά
π RETURN VALUE π
unibi_get_name returns a pointer to the name of the terminal, and that name comes from one of two places:
- it either comes from a terminfo entry β specifically the part after the last
'|'in the name section β πΈ - or it was set by
unibi_set_name. β¨
π SEE ALSO π
and that's the whole page, bestie!! go forth and name ur terminals π this was unibilium-2.1.4, dated 2026-09-07 β periodt. ππ¦π
π¦ 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