Manual Pages for UNIX Darwin command on man mcprint
MyWebUniversity

Manual Pages for UNIX Darwin command on man mcprint

cursprint(3X) cursprint(3X)

NAME

mmccpprriinntt - ship binary data to printer

SYNOPSIS

##iinncclluuddee <>

iinntt mmccpprriinntt((cchhaarr **ddaattaa,, iinntt lleenn));;

DESCRIPTION

This function uses the mmcc55pp or mmcc44 and mmcc55 capabilities, if they are present, to ship given data to a printer attached to the terminal. Note that the mmccpprriinntt code has no way to do flow control with the printer or to know 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 cps

rating). Dot-matrix printers and 6-page-per-minute lasers can typi-

cally handle 80cps, so a good conservative rule of thumb is to sleep

for a second after shipping each 80-character line.

RREETTUURRNN VVAALLUUEE The mmccpprriinntt function returns EERRRR if the write operation aborted for

some reason. In this case, errno will contain either an error associ-

ated with wwrriittee((22)) or one of the following: ENODEV Capabilities for printer redirection do not exist. ENOMEM Couldn't allocate sufficient memory to buffer the printer write.

When mmccpprriinntt succeeds, it returns the number of characters actu-

ally sent to the printer. PPOORRTTAABBIILLIITTYY The mmccpprriinntt call was designed for nnccuurrsseess(3X), and is not found in SVr4 curses, 4.4BSD curses, or any other previous version of curses.

BUGS

Padding in the mmcc55pp, mmcc44 and mmcc55 capabilities will not be interpreted.

SEE ALSO

ccuurrsseess(3X) cursprint(3X)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™