Selecting Local Or Host Macros; Deleting A Macro Definition - Tektronix 4106 Operator's Manual

Computer display terminals
Table of Contents

Advertisement

HOW TO CREATE MACROS
SELECTING LOCAL OR HOST MACROS
Normally, when you press a programmed key, the macro defined for that key
is
sent
to the host computer - just as if you had entered that sequence of characters on
the
keyboard.
This allows you to avoid typing a sequence of commands you
frequently use with your host.
However,
you might want a macro to be interpreted as a sequence of commands to
the terminal (rather than the host). For instance, if you frequently use a particular
sequence of commands to change a terminal characteristic - like
,
the size of the
dialog area or size of your hard copies - you could program a key to execute that
sequence of commands. In a case like this, you do not want the macro sent to the
host, but you do want it executed by the terminal.
To construct a macro to be executed by the terminal, you must include a pair of
key-execute characters at the beginning and at the end of the macro. The default
key-execute character
is
oL,
which you type as Ctrl-P.
(If
you need to use the
0 L
character within a macro
,
you'll need to change the default key-execute character
- see the SET KEY EXECUTE CHARACTER command description in your
41061410714109/CX Programmers Reference Guide .)
The key-execute character acts like a switch that sends the contents of the macro
either to the terminal or to the host. The
first
time the key-execute character
appears in the macro
,
it switches to the terminal. The next time it appears in the
macro
,
it
switches back to the host.
DELETING A MACRO DEFINITION
You can delete a macro and return a key to its default meaning by reissuing the
command you issued to create the macro - either LEARN or NVLEARN. In
response to the prompt, press the key that contains the macro you want to delete,
then press F1
.
If the macro has been saved in nonvolatile memory (that is, created
with the NVLEARN command and followed by an
NVSAVE),
you would also reissue
the NVSAVE command.
For example
,
to delete a macro that was assigned to the F6 key and was saved
in
nonvolatile memory, put the terminal in Setup and enter:
NVLEARN
The terminal responds with its prompt:
Press the key to be defined
:
Press the F6 key, then press the F1
key.
The F6
key
is now back to its default
meaning
.
(With the exception of the function keys, the keycap label of a key
identifies its default meaning
.)
Finally,
issue
:
NVSAVE
4106/4107/4109
OPERATORS
3-29

Advertisement

Table of Contents
loading

This manual is also suitable for:

41074109

Table of Contents