HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/ubuntu/neovim/.deps/build/src/unibilium/doc/unibi_dump.pod
=pod

=head1 NAME

unibi_dump - convert a terminal object to compiled terminfo data

=head1 SYNOPSIS

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

=head1 DESCRIPTION

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

If all numeric properties in I<ut> have values that fit in 15 bits, the
traditional ncurses terminfo format is used (starting with the bytes C<1A 01>),
otherwise the newer "wide integer" format (starting with the bytes C<1E 02>) is
used.

=head1 RETURN VALUE

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

=head1 ERRORS

=over

=item C<EINVAL>

I<ut> can't be converted to terminfo format.

=item C<EFAULT>

The resulting terminfo entry would be longer than I<n> bytes.

=back

=head1 SEE ALSO

L<unibilium.h(3)>,
L<unibi_destroy(3)>,
L<unibi_from_mem(3)>

=cut