------------------------- MS-DOS v6.22 Help: CTTY --------------------------
<Notes> <Examples>                                               <Index>
----------------------------------------------------------------------------

                                    CTTY

Changes the terminal device used to control your computer.

Use the CTTY command if you want to use another device to enter commands.

Syntax

    CTTY device

Parameter

device
    Specifies the alternative device you want to use to type MS-DOS
    commands. Valid values for the device parameter are PRN, LPT1, LPT2,
    LPT3, CON, AUX, COM1, COM2, COM3, and COM4.

Related Command

For more information about changing the input device when specifying a
command interpreter, see the <COMMAND> command.

                                      ***

<Syntax> <Examples>
----------------------------------------------------------------------------

                                CTTY--Notes

Setting up a serial port for CTTY

Use the MODE command to set up your serial port for baud rate, parity, bits,
and stop bit before using the CTTY command.

Using CTTY with programs that do not use MS-DOS

Many programs do not use MS-DOS for input or output. These programs send
input directly to the hardware on your computer. The CTTY command has no
effect on these programs; it affects only programs that use MS-DOS for
reading keyboard input and displaying output.

Setting the terminal device with COMMAND

In addition to the CTTY command, you can use the device parameter of the
COMMAND command to specify the input device.
                                      ***

<Syntax> <Notes>
----------------------------------------------------------------------------

                               CTTY--Examples

To change control of all input and output from the current device (your
computer monitor and keyboard) to the AUX port, type the following at the
command prompt:

    ctty aux

In this example, a remote terminal device connected to the AUX port controls
input and output for your system.

To transfer input and output back to the monitor and keyboard, type the
following command at the remote terminal:

    ctty con

                                      ***

----------------------------------------------------------------------------
<Top of page>
Last update: December 07, 2002 14:45 by
Content © 1997 Microsoft Corporation
All else © 2000-2005
Counter