This chapter discusses the following advanced topics:
Disabling the Close Button of the Terminal
If you need to disable the close button (X) of the Terminal, add a registry key, as follows:
The NoExit value is of type REG_SZ in both cases.
Mapping of the Extended Keyboard
The Terminal supports application keyboard mode for the extended keyboard as follows:
|F1, F2, F3, F4
||PF1, PF2, PF3, PF4 (respectively)
|Shift+F1 ... Shift+F10
||F11 ... F20 (respectively)
The keypad cluster of the extended keyboard is mapped as follows:
key acts as a single XON/XOFF toggle key.
The Terminal provides a couple of special modes, accessible only by keyboard actions.
This mode can help you determine performance of a host system under various load conditions. The output of a timing run is the file KEYTIMER.LOG
in the Caché system manager’s directory.
In learning mode
, the Terminal generates a log file that you can quickly convert to a script file, after making only minor edits. When this mode is enabled, the log file is a sequence of script wait for
commands. The wait for
commands show up to 16 characters preceding the sent data.
Using the Terminal with DDE
The Terminal supports DDE (Dynamic Data Exchange) links to permit other applications to talk to a remote host. This section assumes that you are familiar with DDE. The topics here are as follows:
Used to obtain status information. Examples are the row and column size, whether there is a connection, and so on.
Used to gather data from the Terminal screen.
Used to send data to either the Terminal screen or the host.
A Windows task cannot discriminate between multiple instances of the Terminal when it comes to using DDE. Therefore, use DDE only if one
copy of the Terminal is running.
The Terminal supports DDE requests for what could be considered as static information through the Layout topic.
DDE Layout Connections
||Meaning of Returned Value
||The number of columns of the window.
||The number of rows of the window.
||The decimal equivalent of the main window handle.
||A null string if there is no connection, otherwise the equivalent of the title string "mode: node"
||A 1 if the last received character was a CTRL/A. Its use is detection of the end of screen painting.
||A 1 if a script is currently running, otherwise 0.
||The title of the window.
The Terminal supports DDE requests for screen data through the Screen topic. Currently, one POKE command is available to select which part of a screen line is desired.
DDE Screen Connections
||Meaning of Returned Value
||The current position of the cursor, in the form row;col.
||The current line (without a CR LF).
||The left part of the current line up to but not including the character under the cursor.
||The right part of the current line including the character under the cursor.
||The entire screen, each line is delimited by CR LF.
||The currently selected piece of a screen line (without a CR LF).
The item "Piece" can be POKEd with a string of the form "Rnn
" to cause the Piece request to retrieve (at most) pp
characters on the screen line nn
beginning with column mm
. The top left corner of the screen is row 1, column 1.
The Terminal supports DDE requests for data communications through the Message topic. These are implemented with DDE POKE commands.
DDE Message Connections
||Meaning of returned value
||The DDE message value is sent to the host if a connection is active.
||The DDE message value is sent to the "screen" as if it were received from the host.