Eloquence Language Manual
PORT port# device file
The terminal input/output (TIO) statements provide a means to connect RS-232 asynchronous devices to your computer system. The devices may be terminals, printers, or computers.
This chapter describes the TIO statements and provides programming approaches and tips. Note that TIO error codes are listed in page 427 .
An application program can be written to send output to and receive input from asynchronous devices. TIO statements allow the application program to determine the state of each asynchronous port. The program uses PRINTER IS, PRINT ALL IS or SYSTEM PRINTER IS (coupled with the device address) to direct output to the remote device.
The port number can be between 11 and 20, but cannot be the same as any device address. The device file must have read and write capabilities. Here is an example PORT entry on HP-UX:
PORT 15 /dev/tty1p4The interface parameters (such as baud rate) can be adjusted with the HP-UX stty command.
NOTE: This manual assumes that you are familiar with your computer system and that you have a good understanding of Eloquence. It is also assumes that you have read the manuals which accompany the remote printers and terminals and that you understand the devices.
Chapter contents: