3 \fBmcprint\fR - ship binary data to printer
5 \fB#include <curses.h>\fR
7 \fBint mcprint(char *data, int len);\fR
9 This function uses the \fBmc5p\fR or \fBmc4\fR and \fBmc5\fR capabilities,
10 if they are present, to ship given data to a printer attached to the terminal.
12 Note that the \fBmcprint\fR code has no way to do flow control with the printer
13 or to know how much buffering it has. Your application is responsible for
14 keeping the rate of writes to the printer below its continuous throughput rate
15 (typically about half of its nominal cps rating). Dot-matrix printers and
16 6-page-per-minute lasers can typically handle 80cps, so a good conservative
17 rule of thumb is to sleep for a second after shipping each 80-character line.
20 The \fBmcprint\fR function returns \fBERR\fR if the write operation aborted
21 for some reason. In this case, errno will contain either an error associated
22 with \fBwrite(2)\fR or one of the following:
25 Capabilities for printer redirection don't exist.
28 Couldn't allocate sufficient memory to buffer the printer write.
30 When \fBmcprint\fR succeeds, it returns the number of characters actually
33 The \fBmcprint\fR call was designed for \fBncurses\fR(3x), and is not found
34 in SVr4 curses, 4.4BSD curses, or any other previous version of curses.
36 Padding in the \fBmc5p\fR, \fBmc4\fR and \fBmc5\fR capabilities will not be
41 .\"# The following sets edit modes for GNU EMACS