Skip to main content

Overview

Overview

ObjectScript provides commands that support serial asynchronous ASCII terminals. You can also use these commands with console I/O.

Using Terminal I/O, your routine can:

  • Enable or disable the echo of incoming characters.

  • Send and receive ANSI-standard escape sequences.

  • Control keyboard interruptions and program special user interactions, including formatted screens, reverse video, and special keys for skipping fields.

  • Enable and disable recognition of Ctrl-C interrupts.

  • Control the flow of incoming and outgoing data by XON (Ctrl-Q) and XOFF (Ctrl-S).

  • Specify COM port state parameters and modem baud rate.

  • Conform to foreign protocols when you specify your own set of termination characters.

  • Communicate with non-terminal devices, such as automated instruments.

Printers are handled as terminal I/O devices on most platforms. UNIX® systems always handle a printer as a terminal I/O device. On Windows, a printer connected through a serial communications port is handled as a terminal I/O device. Otherwise, Windows systems handle printers as sequential file I/O devices. For further details, see Printers.

Your Login Terminal or Console is Your Principal Device

The terminal or console on which you log in to InterSystems IRIS is your principal device. You need not open your principal device. If you have not issued an OPEN and a USE, the first time a process issues a READ or WRITE, the system opens your principal device automatically, and establishes it as the current device, as if you had issued OPEN 0 USE 0 explicitly.

Note:

Through the rest of this page, the word terminal is used to refer to both terminals and consoles.

FeedbackOpens in a new tab