Technical data
DEFINE/KEY
DEFINE/KEY
The DEFINE/KEY command associates a string with a particular key on your
keyboard.
Format
DEFINE/KEY key-name string [/qualifiers]
Parameters
key-name
Specifies the name of the key that you are defining. See Table 3–2 for a list of the
keys that CTF defines.
string
Specifies the character string to be processed when you press the specified key.
Enclose the string in double quotes to preserve spaces and lower case characters.
Qualifiers
/ECHO
/NOECHO
Specifies whether the command line is echoed to the screen when you press the
defined key. The default is /ECHO.
/IF_STATE=(state,...)
/NOIF_STATE
Specifies a list of states, at least one of which must be set for the specified key
definition to work.
/LOCK_STATE
/NOLOCK_STATE
Specifies that the state set by the /SET_STATE qualifier remains in effect until a
DEFINE/KEY/NOSET_STATE command is issued to unset the state. The default
is /NOLOCK_STATE, meaning that the effect of /SET_STATE lasts only until the
next definable key that you press or the next read-terminating character that you
type.
/SET_STATE=state
/NOSET_STATE
Specifies that the named state is set when the specified key is pressed. The state
name can be any alphanumeric string. The default is /NOSET_STATE, meaning
that the current locked state is unset when the key is pressed.
See the description of the DCL command DEFINE/KEY in your VMS
documentation for more information about key states.
/TERMINATE
/NOTERMINATE
Specifies whether the string executes when you press the specified key. The
default is /NOTERMINATE, which means that you can press other keys before
the command string is processed.
4–10 CTF Commands










