Home > Commands A-M > Commands Ch-Cz

CTTY


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

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


Parameters
device (v3.0 Win95)
Specifies the alternative device you want to use to type commands. Valid values for the device parameter are:

Switches

none


Related

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


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 DOS

Many programs do not use 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 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.


Examples

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

    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:

    CTTY CON

Errorlevels

none.


Availability
Internal
DOS
v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
Win95 Win98 WinME
Windows NT
NT4

Last Updated: 2003/07/28
Direct corrections or suggestions to: Rick Lively