unibi_get_name(3)
π unibi_get_name(3) β the unibilium girlies' guide to terminal names π
ok so bestie, we're in section 3 of the unibilium manual, and today's topic is terminal names β the whole unibi_get_name / unibi_set_name situation. pull up a chair, grab a boba, let's go π§β¨
β¨ NAME β¨
unibi_get_name, unibi_set_name β access the name of a terminal object π·οΈ
like, that's it. that's the whole job. one gets, one sets, both live in the name department.
πΈ SYNOPSIS πΈ
#include <unibilium.h>
const char *unibi_get_name(const unibi_term *ut);
void unibi_set_name(unibi_term *ut, const char *s);
so you gotta #include <unibilium.h> first, obviously, and then it's just these two little icons π«Ά
π¦ DESCRIPTION π¦
okay so here's the tea β
unibi_get_namegets the name fromut.unibi_set_namesets the name tos.
that's the whole dynamic. getter gets, setter sets. they ate π
β οΈ okay but PAY ATTENTION bestie, because this one is important:unibi_set_namesimply stores the pointer it is given. it will not frees. it will not make a copy of the string. no dupe, no clone, no backup copy, nothing. it's literally just holding onto your pointer like "yeah this is mine now" π so ifsgoes away, changes, or gets freed whileutstill points at it, that's on you. no cap.
π RETURN VALUE π
unibi_get_name returns a pointer to the name of the terminal. and where does that name come from, you ask? two options, bestie:
- it comes from a terminfo entry β specifically the part after the last
'|'in the name section π - or it was set by
unibi_set_name
either way you get a pointer back. iconic behavior fr fr β¨
π SEE ALSO π
go read those too, they're the sibling pages, the whole friend group π«Ά
and that's the page!! this little legend comes to you from unibilium-2.1.4, dated 2026-09-07 β mwah, stay hydrated, read your manpages, and remember: store the pointer, not the vibe ππ
unibi_get_name(3) β 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