MS-DOS and Windows command line ctty command
Ctty is an MS-DOS utility that allows you to change the standard computer input/output device.
Ctty is an internal command and is available for the following Microsoft operating systems.
Changes the terminal device used to control your system.
|device||The terminal device you want to use, such as COM1.|
Available MS-DOS devices for CTTY
Moves the input and output to a remote terminal connected to the auxiliary port.
Moves the input and output back to the main terminal. This command would be typed from a remote terminal.
Using CTTY NUL will disconnect the computer display and keyboard from the screen and not allow you to reconnect the input and output from a remote terminal.