Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>prt_opts()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PRT_OPTS()
   Selects various printing options.

   Syntax
         PRT_OPTS(nOrient,nShade,nWhiteBkgnd,nEject,nReset, [nNovell])

   Arguments
         nOrient      Selects portrait or landscape output. Default is
                      portrait.
         nShade       Sets the pattern mode. Default is 0 (Monochrome output).
         nWhiteBkgnd  Selects White-On-Black or Black-On-White shading.
                      Default is White-On-Black.
         nEject       Sets a sequence to be sent at the end of the screen
                      dump. Default is 0 (no page eject).
         nReset       Sets a printer reset sequence at the end of the screen
                      dump on or off. Default is off.
         OPTIONAL PARAMETERS
         nNovell      Special flag to indicate not to close a printer port
                      until you close it with PRT_HANDLE().
                           0-Close handle normally after printing a page.
                           1-Leave file handle open until closed with
                             PRT_HANDLE().

   Returns
         None

   Description
         PRT_OPTS() is used to select various options. All parameters are
         flags, in that a 0 value suppresses the option while a non-zero
         value selects the option. All options, except for orientation, are
         off by default.

         nOrientation (0/1) - If set, selects Portrait output (the default);
         otherwise Landscape (rotate by 90 degrees) is selected.

         nShade (0-16) - If non-zero, the pattern mode is selected. In this
         mode 16 color shading patterns are employed. Else, if 0, (the
         default) monochrome output is generated and all colors except the
         background color are treated as foreground.

         nWhiteBkgnd (0/1) - For color mode only, this options selects
         White-On-Black shading or Black-On-White shading. Zero selects
         White-On-Black (the default) and non-zero selects Black-On-White, the
         inverse.

         nEject (0-2) - A non-zero specifies that a page eject, or form feed,
         sequence should be sent at the end of the screen dump. A value of
         0 (the default) suppresses the page eject.

         nReset (0/1) - A non-zero specifies that a printer reset sequence
         should be sent at the end of the screen dump. A value of 0 (the
         default) suppresses the printer reset.

         nNovell is a flag that leaves the printer port open after the image
         is sent to the printer. Normally, the spooler will consider the
         output a completed print job once the printer port is closed, which
         happens after the image is printed. Then the timeout feature will
         eject a page after the specified timeout period. When nNovell is 1,
         the file handle is not closed upon finishing the print job. It
         should be closed by you at the appropriate time with PRT_HANDLE().

See Also: COLR_TABLE() PRT_COLORS() SHAD_TABLE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson