svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
curs_print(3x)
curs_print(3x) Library calls curs_print(3x)
NAME
mcprint - write binary data to printer using terminfo capabilities
SYNOPSIS
#include <ncursesw/curses.h>
int mcprint(char * data, int len);
DESCRIPTION
mcprint, an ncurses extension to the curses library, uses the termi‐
nal's prtr_non (mc5p) or prtr_on (mc5) and prtr_off (mc4) media copy
capabilities, if defined, to send len bytes of the given string data to
a printer attached to the terminal.
mcprint has no means of flow control to the printer nor of knowing how
much buffering it has. Your application is responsible for keeping the
rate of writes to the printer below its continuous throughput rate,
typically about half of its nominal characters-per-second (cps) rating.
Dot-matrix printers and 6-page-per-minute laser printers can typically
handle 80 cps, so a conservative rule of thumb is to sleep for one sec‐
ond after sending an 80-character line.
RETURN VALUE
On success, mcprint returns the number of characters sent to the
printer.
mcprint returns ERR if the write operation fails for any reason. In
that event, errno contains either a value set by write(2), or one of
the following.
ENODEV
The terminal lacks relevant media copy capabilities.
ENOMEM
ncurses could not allocate sufficient memory to buffer the write
operation.
EXTENSIONS
mcprint is an ncurses(3X) extension, and is not found in SVr4 curses,
4.4BSD curses, or any other previous curses implementation.
PORTABILITY
Applications employing this ncurses extension should condition its use
on the visibility of the NCURSES_VERSION preprocessor macro.
HISTORY
ncurses introduced mcprint prior to version 1.9.9g (1996).
BUGS
Padding in the prtr_non (mc5p), prtr_on (mc5), and prtr_off (mc4) capa‐
bilities is not interpreted.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
box; cbp-1 | cbp-1 l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE = Availabil‐
ity library/ncurses = Stability Uncommitted
SEE ALSO
curses(3X)
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at:
https://github.com/oracle/solaris-userland
The original community source was downloaded from:
https://invisible-mirror.net/archives/ncurses/cur‐
rent/ncurses-6.5-20250614.tgz
Further information about this software can be found on the open source
community website at https://invisible-island.net/ncurses/.
ncurses 6.5 2025-02-15 curs_print(3x)