NAME
mcprint - ship binary data to printer
SYNOPSIS
#include <curses.h> int mcprint(char *data, int len);
DESCRIPTION
This function uses the mc5p or mc4 and mc5 capabilities, if they are present, to ship given data to a printer attached to the terminal. Note that the mcprint 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 typically handle 80cps, so a good conservative rule of thumb is to sleep for a second after shipping each 80-character line.
RETURN VALUE
The mcprint function returns ERR if the write operation aborted for some reason. In this case, errno will contain either an error associated with write(2) 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 mcprint succeeds, it returns the number of characters actually sent to the printer.
PORTABILITY
The mcprint call was designed for ncurses(3NCURSES), and is not found in SVr4 curses, 4.4BSD curses, or any other previous version of curses.
BUGS
Padding in the mc5p, mc4 and mc5 capabilities will not be interpreted.
SEE ALSO
ncurses(3NCURSES) print(3NCURSES)
More Linux Commands
manpages/mvwhline_set.3ncurses.html
mvwhline_set(3ncurses) - create curses borders or lines usin
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a
manpages/fts_read.3.html
fts_read(3) - traverse a file hierarchy - Linux manual page
The fts functions are provided for traversing file hierarchies. A simple overview is that the fts_open() function returns a handle on a file hierarchy, which is
manpages/bzcat.1.html
bzcat(1) - decompresses files to stdout - Linux manual page
bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. Compression is generally considerably better than
manpages/gnutls_pkcs11_token_init.3.html
gnutls_pkcs11_token_init(3) - API function - Linux man page
This function will initialize (format) a token. If the token is at a factory defaults state the security officers PIN given will be set to be the default. Other
manpages/Tcl_RegisterObjType.3.html
Tcl_RegisterObjType(3) - manipulate Tcl object types........
The procedures in this man page manage Tcl object types. They are used to register new object types, look up types, and force conversions from one type to anoth
manpages/strequate.3.html
strequate(3) map a list of characters to the same value.....
Each character in the input string get mapped to the first character in the string. This function name is mapped to option_strequate so as to not conflict with
manpages/gnutls_openpgp_privkey_init.3.html
gnutls_openpgp_privkey_init(3) - API function (Man Page)....
gnutls_openpgp_privkey_init.3 - This function will initialize an OpenPGP key structure. RETURNS GNUTLS_E_SUCCESS on success, or an error code. REPORTING BUGS Re
manpages/koi8-r.7.html
koi8-r(7) - Russian character set encoded in octal, decimal,
KOI8-R is the character set of choice for encoding Russian texts for many UNIX-like operation systems. KOI8-R is a successor for KOI-8, a de-facto standard for
manpages/smbtree.1.html
smbtree(1) - A text based smb network browser (Man Page)....
This tool is part of the samba(7) suite. smbtree is a smb browser program in text mode. It is similar to the Network Neighborhood found on Windows computers. It
manpages/Mail::SpamAssassin::Plugin::Reuse.3pm.html
Mail::SpamAssassin::Plugin::Reuse(3pm) - For reusing old rul
The purpose of this plugin is to work in conjunction with mass-check --reuse to map rules hit in input messages to rule hits in the mass-check output. Mail::Spa
manpages/Mail::SpamAssassin::AutoWhitelist.3pm.html
Mail::SpamAssassin::AutoWhitelist(3pm) - auto-whitelist hand
Mail::SpamAssassin::AutoWhitelist.3pm - Mail::SpamAssassin is a module to identify spam using text analysis and several internet-based realtime blacklists. This
manpages/smixlate.1.html
smixlate(1) - translate SMI/SPPI identifiers (Man Page).....
The smixlate program is used to translate identifiers and especially OIDs into a more human readable format. OPTIONS -V, --version Show the smixlate version and
