Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (26 sloc) 0.877 kb

NAME

unibi_dump - convert a terminal object to compiled terminfo data

SYNOPSIS

 #include "unibilium.h"
 
 size_t unibi_dump(const unibi_term *ut, char *p, size_t n);

DESCRIPTION

This function creates a compiled terminfo entry from ut. The output is written to p, which must have room for at least n bytes.

RETURN VALUE

unibi_dump returns the number of bytes required to store the terminfo data. If this exceeds n, nothing is written to p. If the terminal object can't be represented in terminfo format (string table too large), the return value is SIZE_MAX.

ERRORS

EINVAL

ut can't be converted to terminfo format.

EFAULT

The resulting terminfo entry would be longer than n bytes.

SEE ALSO

unibilium.h(3), unibi_destroy(3), unibi_from_mem(3)

Jump to Line
Something went wrong with that request. Please try again.