This section covers features to change how TCC-RT and some application programs handle input and output.
Internal commands and some external programs get their input from the computer's standard input device and send their output to the standard output device. Some programs, including TCC-RT, also send special messages to the standard error device. Normally, the keyboard is used for standard input and the video display for both standard output and standard error, but you can temporarily change these assignments for special tasks.
For example, suppose you want a printed list of the files in a directory. If you change the standard output to the printer and issue a DIR command, the task is easy. DIR's output goes to the standard output device, and you have redirected standard output to the printer, so the DIR command prints filenames instead of displaying them on the screen. You can just as easily send the output of DIR (or any other command) to a file or a serial port.
We offer three methods of manipulating input and output: Redirection, Piping, and Keystack. All three are explained in this section. In addition, TCC-RT supports a subset of ANSI X3.64 control sequences in displayed text. The last topic in this section explains ANSI X3.64 support in detail.
Redirection and piping affect the standard input, standard output, and standard error devices. They do not work with application programs which read the keyboard hardware directly, or which write directly to the display. Because most Windows applications fall into that category, you will find that redirection and piping are most useful when they are combined with internal commands.
TCC-RT's output is normally in ANSI. If you want to redirect output in Unicode, you need to either use the /U startup option in TCC-RT, or the Unicode Output option in TCMD.INI.