curs_print(3x) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

curs_print(3x)

curs_print(3x)                                                  curs_print(3x)



NAME
       mcprint - ship binary data to printer

SYNOPSIS
       #include <ncursesw/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  typi‐
       cally  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 associ‐
       ated 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(3X), 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.


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/ar‐
       chives/ncurses/ncurses-6.3.tar.gz.

       Further information about this software can be found on the open source
       community website at https://invisible-island.net/ncurses/.



                                                                curs_print(3x)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3