icon Top 9 categories map      RocketAware > man pages >

curs_print(3)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD Others






curs_print(3)                                       curs_print(3)


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 don't exist.

       ENOMEM
            Couldn't allocate sufficient  memory  to  buffer  the
            printer write.

            When mcprint succeeds, it returns the number of char-
            acters actually sent to the printer.

PORTABILITY
       The mcprint call was designed  for  ncurses,  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
       curses(3)







                                                                1



Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
OpenBSD sources for curs_print(3)


[Overview Topics]

Up to: Curses - Curses (Library for text display interfaces)


RocketLink!--> Man page versions: OpenBSD FreeBSD Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > curs_print.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments