文章 姚 鑫 · 十二月 11, 2024 2m read

第四十七章 终端输入 输出 - DTM PC 控制台的助记符空间

第四十七章 终端输入 输出 - DTM PC 控制台的助记符空间

DTM PC 控制台的助记符空间

IRIS 提供 IRIS 例程 %XDTM 来匹配开发 DTM 应用程序时使用的助记符。该助记词空间可用,但未设置为终端默认助记词空间。如果您将为 DTM 创建的应用程序移植到 IRIS,可以:

  • 在管理门户中将 ^%XDTM 配置为终端( MnemonicTerminal )的默认助记词空间,或者
  • OPENUSE命令中引用 ^%XDTM 助记符空间。

DTM 示例

UNIX

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

Windows

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

然后 IRIS 可以正确解释WRITE /mnemonic命令中的 DTM 控制助记符,如下表所示。

DTM PC 控制台的控制助记符

MnemonicDescription
AANormal mode
ABBold mode
ACUnderlined mode
ADBold, underlined mode
AEReverse video
AFReverse video/Bold mode
AGReverse video/Underline mode
AHReverse video/Bold, underlined mode
AIBlink mode
AJBold, blink mode
AKUnderlined, blink mode
ALBold, underlined, blink mode
AMReverse video / Bold, blink mode
ANReverse video / Bold, blink mode
AOReverse video / Underlined, blink modes
APReverse video / Bold, underlined, blink modes
AZMode Z
B(%1,%2)Set video attributes: %1 provides attribute for characters, %2 provides attribute for clearing frames
BOXDraw a window-relative utility box
C(%1,%2)Position cursor at column %1, line %2
CLRClear current frame
COLOR(%1,%2)Set IBM PC Color: Foreground %1, Background %2
DC(%1)Delete %1 characters
EC(%1)Erase %1 characters
EFErase to end of frame
ELErase 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
GETCURReturn terminal cursor position
HFScreen half bright off
HIDECURSORHide mouse cursor
HNScreen half bright
IC(%1)Insert %1 characters
LFDisable literal mode
LNEnable literal mode, which displays control characters graphically on a PC screen.
MARK(%1)Make mark on screen
NORMEnable normal display attributes
PAD(%1)Write %1 NULLS for padding
PFPause off
PNPause on
RFScreen reverse video off
RNScreen reverse video
SD(%1,%2,%3)Scroll current frame down by %3 lines
SHOWCURSORShow mouse cursor
SU(%1,%2,%3)Scroll current frame up by %3 lines, starting at line %1 down to but not including line %2
VFVisible cursor off
VNVisible cursor on
WBOXDraw a screen-relative utility box
WCLOSEClose utility window
WINDOWSet scrolling window
WOPENOpen utility window
Y(%1)Set binary frame attribute