Programs afunction key with a string value or with an action. Also programs a control key with an action (UNIX only).
UNIX Users: Under UNIX, if key is not already on PV-WAVE's internal list, you must use the Escape keyword to specify the escape sequence; otherwise, key alone will suffice. The section Standard Function Keys Under UNIX describes the standard key definitions; however, available function keys and the escape sequences they send vary from keyboard to keyboard.
OpenVMS Users: Under OpenVMS, key names are defined by the Screen Management utility (SMG). The section Standard OpenVMS Function Keys describes some of these keys. For a complete description, see the OpenVMS RTL Screen Management (SMG$) Manual.
NOTE: Most of the following keywords work under UNIX only.
Back_Word
Delete_Character
Delete_Forward_Char
Delete_Line
Delete_To_EOL
Delete_Word
End_of_Line
Enter_Line
Escape
Forward_Character
(UNIX only) Programs key to move the current cursor position right one character.
(UNIX only) Programs key to move the current cursor position right one word.
(UNIX only) Programs key to toggle between insert and overstrike mode. When characters are typed into the middle of a line, insert mode causes the trailing characters to be moved to the right to make room for the new ones, while overstrike mode causes the new characters to overwrite the existing ones.
Programs key to prompt the user for a string, and then search the saved command buffer for the most recently issued command that contains that string. If a match is found, the matching command becomes the current command; otherwise the last command entered is used.
UNIX Users: Under UNIX, the default match key is the up caret "^" key when pressed in column 1.
OpenVMS Users: Under OpenVMS, the default match key isPF1
.
Noecho
Previous_Line
Redraw
Start_of_Line
Terminate
It is convenient to include commonly used key definitions in a startup file so that they will always be available.
NOTE: For a discussion of startup files, see the PV-WAVE User's Guide.
INFO, /Keys
DEFINE_KEY, '^F', /Forward_key
You cannot bind a control key to a string, and some control keys are used for process management. For example,
UNIX Users: The UNIXstty
command can be used to rebindtty
control characters or to eliminate them altogether. Refer to thestty
man page for more information.
Escape
[28~
, use the command:
DEFINE_KEY, 'HELP', Escape = '\033[28~'
Once a key is defined using the Escape keyword, it is contained in the internal list of function keys. It can then be subsequently re-defined without specifying the escape sequence.
However, if the SETUP_KEYS procedure is used to define the function keys found on the keyboard, it is not necessary to specify the Escape keyword. For example, the following statements program the
SETUP_KEYS DEFINE_KEY, 'F2', /Redraw
NOTE: SunOS users, the function keys R8, R10, R12, and R14 (the arrow buttons) are reserved and cannot be set with DEFINE_KEY. Also, the L1L10 keys are reserved for use by the window manager and cannot be set with DEFINE_KEY.
INFO, /Keys
with the statement:
DEFINE_KEY, /Terminate, 'F12', 'INFO, /Keys'
INFO, /Keys
command produces output that includes the line:
F12\03[P
= INFO, /Keys
Terminate
![]()