ctty(CMD) 19 June 1992 ctty(CMD) Name ctty - change the terminal device used to control your system Syntax ctty device Description Use the ctty command if you want to use another device to enter commands. Parameter device Specifies the alternative device you want to use to type MS-DOS commands. Notes Using valid values for device The valid values for the device parameter are: prn, lpt1, lpt2, lpt3, con, aux, com1, com2, com3, com4. Setting up the 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. Examples The following command changes control of all input and output from the current device (your computer screen and keyboard) to the AUX port: ctty aux In this example, a remote terminal device connected to the AUX port con- trols input and output for your system. To transfer input and output back to the screen and keyboard, type the following command at the remote terminal: ctty con Related commands For more information about changing the input device when specifying a command interpreter, see the command command. For more information about setting up the serial port, see the mode (con- figure serial port) command.