Skip to main content

Predefined Mnemonic Spaces for Terminals

Predefined Mnemonic Spaces for Terminals

InterSystems IRIS provides two predefined mnemonic spaces for use with terminals:

  • ^%X364 for ANSI X3.64 terminals

  • ^%XDTM for DTM PC Console

If you make one of these mnemonic spaces active, you can use the control mnemonics associated with them in WRITE /mnemonic commands. You can also create your own mnemonic spaces. See Controlling Devices with Mnemonic Spaces for more information on mnemonic spaces.

The following sections describe the control mnemonics for these mnemonic spaces.

Mnemonic Space for X3.64

InterSystems IRIS provides a built-in mnemonic space for the ANSI X3.64 definition. This mnemonic space is the InterSystems IRIS routine %X364 in the manager’s namespace. To use routine %X364, either:

  • Have your InterSystems IRIS system manager enter %X364 as the default mnemonic space in the IO Settings configuration setting. From the Management Portal, select System Administration, Configuration, Device Settings, IO Settings.

  • Issue an OPEN command specifying this mnemonic space:

     OPEN "terminal"::"^%X364"

The following table lists the mnemonics.

Control Mnemonics for %X364 Mnemonic Space
Calling Sequence Name System Variable Affected
APC Application Program Command
BEL Ring the bell
CBT(%1) Cursor Backward Tabulation $X
CCH Cancel Character
CHA(%1) Cursor Horizontal Absolute $X
CHT(%1) Cursor Horizontal Tabulation $X
CNL(%1) Cursor Next Line $X,$Y
CPL(%1) Cursor Preceding Line $X,$Y
CPR Cursor Position Report
CTC(%1,%2,%3,%4, %5,%6,%7,%8,%9) Cursor Tabulation Control
CUB(%1) Cursor Backward $X
CUD(%1) Cursor Down $Y
CUF(%1) Cursor Forward $X
CUP(%1,%2) Cursor Position $X, $Y
CUU(%1) Cursor Up $Y
CVT(%1) Cursor Vertical Tabulation $Y
DA Device Attributes
DAQ(%1,%2,%3,%4, %5,%6,%7,%8,%9) Define Area Qualification
DCH(%1) Delete Characters
DCS Device Control String
DL(%1) Delete Lines
DMI Disable Manual Input
DSR(%1) Device Status Report
EA(%1) Erase in Area
ECH(%1) Erase Characters
ED(%1) Erase in Display
EF(%1) Erase in Field
EL(%1) Erase in Line
EMI Enable Manual Input
EPA End of Protected Area
ESA End of Selected Area
FNT Font Selection
GSM Graphic Size Modification
GSS Graphic Size Selection
HPA(%1) Horizontal Position Attribute $X
HPR(%1) Horizontal Position Relative $X
HTJ Horizontal Tab with Justify $X
HTS Horizontal Tab Set $X
HVP(%1,%2) Horizontal and vertical position $X, $Y
ICH(%1) Insert Characters
IL(%1) Insert Lines
IND Index $Y
INT Interrupt
JFY Justify
MC Media Copy
MW Message Waiting
NEL Next Line $X, $Y
NP(%1) Next Page
OSC Operating System Command
PLD Partial Line Down $Y
PLU Partial Line Up $Y
PM Privacy Message
PP(%1) Preceding Page
PU1 Private Use 1
PU2 Private Use 2
QUAD QUAD
REP(%1) REPEAT $X, $Y
RI Reverse Index $Y
RIS Reset to Initial State $X=0 $Y=0
RM(%1,%2,%3,%4,% 5,%6,%7,%8,%9) Reset Mode
SEM Select Editing Extent Mode
SGR(%1,%2,%3,%4, %5,%6,%7,%8,%9) Select Graphic Rendition
SL Scroll Left
SM(%1,%2,%3,%4,% 5,%6,%7,%8,%9) Set Mode
SPA Start of Protected Area
SPI Spacing Increment
SR Scroll Right
SS2 Single Shift Two
SS3 Single Shift Three
SSA Start of Selected Area
ST String Terminator
STS Set Transmit State
SU Scroll Up
TBC Tabulation Clear
TSS Thin Space Specification
VPA(%1) Vertical Position Attribute $Y
VPR(%1) Vertical Position Relative $Y
VTS Vertical Tab Set

Mnemonic Space for DTM PC Console

InterSystems IRIS provides the InterSystems IRIS routine %XDTM to match the mnemonics used in developing applications for DTM. This mnemonic space is available but is not set up as the default mnemonic space for terminals. If you port applications created for DTM to InterSystems IRIS, you can either:

  • Configure ^%XDTM as the default mnemonic space for terminals (MnemonicTerminal) in the Management Portal, or

  • Reference the ^%XDTM mnemonic space in the OPEN or USE command.

DTM Examples

UNIX®

  OPEN "/dev/tty04/"::"^%XDTM"

Windows

  OPEN "c:\sys\user"::"^%XDTM"

Then InterSystems IRIS can correctly interpret the DTM control mnemonics in WRITE /mnemonic commands, shown in the following table.

Control Mnemonics for DTM PC Console
Mnemonic Description
AA Normal mode
AB Bold mode
AC Underlined mode
AD Bold, underlined mode
AE Reverse video
AF Reverse video/Bold mode
AG Reverse video/Underline mode
AH Reverse video/Bold, underlined mode
AI Blink mode
AJ Bold, blink mode
AK Underlined, blink mode
AL Bold, underlined, blink mode
AM Reverse video / Bold, blink mode
AN Reverse video / Bold, blink mode
AO Reverse video / Underlined, blink modes
AP Reverse video / Bold, underlined, blink modes
AZ Mode Z
B(%1,%2) Set video attributes: %1 provides attribute for characters, %2 provides attribute for clearing frames
BOX Draw a window-relative utility box
C(%1,%2) Position cursor at column %1, line %2
CLR Clear current frame
COLOR(%1,%2) Set IBM PC Color: Foreground %1, Background %2
DC(%1) Delete %1 characters
EC(%1) Erase %1 characters
EF Erase to end of frame
EL Erase to end of line
F(%1,%2,%3, %4,%5) Fill rectangular area with $CHAR(%1) at upper left corner, %4 columns wide by %5 lines high
GETCUR Return terminal cursor position
HF Screen half bright off
HIDECURSOR Hide mouse cursor
HN Screen half bright
IC(%1) Insert %1 characters
LF Disable literal mode
LN Enable literal mode, which displays control characters graphically on a PC screen.
MARK(%1) Make mark on screen
NORM Enable normal display attributes
PAD(%1) Write %1 NULLS for padding
PF Pause off
PN Pause on
RF Screen reverse video off
RN Screen reverse video
SD(%1,%2,%3) Scroll current frame down by %3 lines
SHOWCURSOR Show mouse cursor
SU(%1,%2,%3) Scroll current frame up by %3 lines, starting at line %1 down to but not including line %2
VF Visible cursor off
VN Visible cursor on
WBOX Draw a screen-relative utility box
WCLOSE Close utility window
WINDOW Set scrolling window
WOPEN Open utility window
Y(%1) Set binary frame attribute
FeedbackOpens in a new tab