oem.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MODE (Configure Printer)
Notes  Examples
────────────────────────────────────────────────────────────────────────────
 
                          MODE (Configure Printer)
 
Configures a printer connected to a parallel printer port.
 
This version of the MODE command sets the characteristics for an
IBM-compatible or Epson-compatible printer connected to a parallel printer
port (LPT1, LPT2, or LPT3).
 
Syntax
 
    MODE LPTn[:] [c][,[l][,r]]
 
    MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
 
Parameters
 
LPTn
    Specifies the parallel port to which the device is attached. Valid
    values for n are in the range 1 through 3.
 
    If you omit any of the following three parameters, MODE uses the most
    recent setting for the omitted parameter. If you are using the shorter
    form of the syntax (without the words COLS=, LINES=, and RETRY=), the
    MODE command "recognizes" the parameters by their positions. Thus, if
    you do not specify a value for a parameter, you must still type the
    comma that precedes the next parameter.
 
COLS=c
    Specifies the number of characters (columns) per line: 80 or 132. The
    default value is 80. You can abbreviate this parameter by omitting COLS=
    and specifying a value for c.
 
LINES=l
    Specifies the vertical spacing and the number of lines per inch: 6 or 8.
    The default value is 6. You can abbreviate this parameter by omitting
    LINES= and specifying a value for l.
 
RETRY=r
    Specifies the retry action to take if a time-out error occurs when MODE
    attempts to send output to a parallel printer. This parameter causes
    part of MODE to remain resident in memory. The following list shows each
    valid value for r and a brief description of its meaning:
 
    B    Return "busy" from a status check of a busy port.
 
    E    Return an error from a status check of a busy port.
 
    P    Continue retrying until printer accepts output.
 
    R    Return "ready" from a status check of a busy port.
 
    N    Take no retry action (default value). You can also specify NONE
         for this value.
 
If you are using the MODE command over a network, do not use any of the r
values.
 
You can abbreviate this parameter by omitting RETRY= and specifying a value
for r.
 
                                      ♦