unibi_from_term(3)
β¨ unibi_from_term β¨
okay bestie, welcome to the unibilium corner of the man pages, section 3 π this one's called unibi_from_term, and it's literally the little function that goes and finds the terminfo entry for a terminal by name. no biggie. just a whole scavenger hunt for terminal definitions π¦
πΈ NAME πΈ
unibi_from_term β read a terminfo entry for a named terminal π
π«Ά SYNOPSIS π«Ά
#include <unibilium.h>
unibi_term *unibi_from_term(const char *name);
like. that's it. that's the whole vibe. one include, one function, one const char *name and she's off π
π DESCRIPTION π
so what this does is: it locates the terminfo file for name, and then it hands things over to unibi_from_file. that's the whole plot. the drama is entirely in where she goes looking πβ¨
and the search order is, in order, no skipping, no shuffling:
- if the environment variable
TERMINFOis set, it gets interpreted as the name of the directory to search for local terminal definitions β and it checks there before checking in the standard place. so like, local first, bestie. always local first π - otherwise,
$HOME/.terminfogets tried. your own little personal stash of terminal definitions π - if that was not successful and
TERMINFO_DIRSis set, it gets interpreted as a colon-separated list of directories to search. colon-separated!! plural!! a whole list of places to check πΊοΈ - if
TERMINFO_DIRSis not set, then a compiled-in fallback calledunibi_terminfo_dirsis used instead. the built-in backup plan. the safety net. the "don't worry babe I got you" of it all π§
not me listing all four steps in exact order because the order is literally the entire point of this function π don't reorder them, that's not a vibe, that's a bug.
β RETURN VALUE β
see unibi_from_file(3). yeah she's delegating again. the return value lore lives over there, go read that one, I'll wait π«Ά
π SEE ALSO π
and that's the whole page, periodt π
this was unibilium-2.1.4, dated 2026-09-07, brought to you by the unibi_from_term(3) girlies. go find your terminals, bestie, you got this πβ¨π
π¦ 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