文章
· 十二月 11, 2024 阅读大约需 2 分钟

第四十七章 终端输入 输出 - 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 控制台的控制助记符

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
讨论 (0)1
登录或注册以继续