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