unibi_from_fd(3)
β¨ unibi_from_fd β bestie's guide to terminfo from a file descriptor β¨
okay so picture this: you're deep in unibilium (the manual, section 3, she's iconic) and you need a terminfo entry, but all you've got is a file descriptor. not a path, not a buffer, just a raw fd. say less. π
πΈ NAME πΈ
unibi_from_fd β read a terminfo entry from a file descriptor. that's the whole job. she does one thing and she does it well, no cap.
π SYNOPSIS π
#include <unibilium.h>
unibi_term *unibi_from_fd(int fd);
look at her. one include, one function, one int fd. clean. minimal. main character energy fr fr. π¦
π DESCRIPTION π
so here's the tea, bestie: this function reads up to 32768 bytes from fd, and then it hands the whole thing off to unibi_from_mem. that's it. that's the function. she's a little pipeline, a lil relay race, and honestly? we love a delegator. π
ngl the 32768 is a hard cap β she is NOT reading more than that, so don't come crying to her about your 40KB terminfo file. that's a whole different conversation. π
π RETURN VALUE π
bestie, the return value lore lives over in unibi_from_mem(3). go read that one, she's got the receipts. πβ¨
π«Ά SEE ALSO π«Ά
unibilium.h(3)β the header, the blueprint, the momentunibi_from_mem(3)β where all the actual work happensunibi_destroy(3)β because everyunibi_term *deserves a clean goodbye π₯Ί
and that's the whole page, you're welcome π this was written against unibilium-2.1.4, dated 2026-09-07 β go forth, read your file descriptors, and slay β¨πΈπ
π¦ 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