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 🫢


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