GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
doc::unibi_from_mem(3) unibilium doc::unibi_from_mem(3)

unibi_from_mem - construct a terminal object from a compiled terminfo entry

 #include <unibilium.h>
 
 unibi_term *unibi_from_mem(const char *p, size_t n);

This function parses a compiled terminfo entry that starts at p and is n bytes long, and constructs a "unibi_term" object from it. When you're done with this object, you should call "unibi_destroy" to free it.

"unibi_from_mem" parses both the traditional ncurses terminfo format (starting with the bytes "1A 01") and the newer "wide integer" format (starting with the bytes "1E 02").

A pointer to a new "unibi_term". In case of failure, "NULL" is returned and "errno" is set.

"EINVAL"
The bytes p points at don't look like a valid terminfo entry.
"EFAULT"
n is too small for a valid terminfo entry.

unibilium.h(3), unibi_dump(3), unibi_destroy(3), unibi_from_fp(3), unibi_from_fd(3), unibi_from_file(3), unibi_from_term(3), unibi_from_env(3)
2019-08-11 unibilium-2.0.0

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.