Set FN Key
Set FN Key is used to define function keys and other programmable keys. There are 57 immediate command key slots ranging from 1 to 57. Any slot number can be redefined and any numbers within the range that do not appear in the special key mappings on page 4-16 are not defined.
The following is the syntax for the Set FN Key command:
SF <slot number> /command string/
Define Ctrl+key combinations by substituting a caret (^) and the other character for the slot number.
Example Script
This example script assigns function keys to cursor control commands. You can also enter these as a series of extended mode commands. The Top of File, Bottom of File, End of Page, Next Page, Next Line, and Previous Line commands are assigned to the F1 through F6 keys, respectively. Quotation marks are used as delimiters.
SF 1 "t"
SF 2 "b"
SF 3 "ep"
SF 4 "pd"
SF 5 "n"
SF 6 "p"
Special Key Mappings
The following table shows the default key definitions used in the Reset Keys command:
Slot#
|
Key/Key Sequence
|
Function
|
1-10
|
F1 through F10
|
Not defined
|
11-20
|
Shift+F1 to Shift+F10
|
Not defined
|
21
|
Shift+left arrow
|
Move to beginning of line
|
22
|
Shift+right arrow
|
Move to end of line
|
23
|
Shift+up arrow
|
Move to top of document
|
24
|
Shift+down arrow
|
Move to bottom of document
|
25
|
Del
|
Delete character at cursor
|
26
|
Not defined
|
Not defined
|
27
|
Ctrl+A
|
Insert line
|
28
|
Ctrl+B
|
Delete line
|
29
|
Ctrl+C
|
Not defined
|
30
|
Ctrl+D
|
Move down 12 lines
|
31
|
Ctrl+E
|
Move to top or bottom of screen
|
32
|
Ctrl+F
|
Change case
|
33
|
Ctrl+G
|
Repeat last extended command line
|
34
|
Ctrl+H
|
Delete character left of cursor
|
35
|
Ctrl+I
|
Move cursor to next tab position
|
36
|
Ctrl+J
|
Not defined
|
37
|
Ctrl+K
|
Not defined
|
38
|
Ctrl+L
|
Not defined
|
39
|
Ctrl+M
|
Return
|
40
|
Ctrl+N
|
Not defined
|
41
|
Ctrl+O
|
Delete word or spaces
|
42
|
Ctrl+P
|
Not defined
|
43
|
Ctrl+Q
|
Not defined
|
44
|
Ctrl+R
|
Move to end of previous word
|
45
|
Ctrl+S
|
Not defined
|
46
|
Ctrl+T
|
Move start of next word
|
47
|
Ctrl+U
|
Move up 12 lines
|
48
|
Ctrl+V
|
Redisplay window
|
49
|
Ctrl+W
|
Not defined
|
50
|
Ctrl+X
|
Not defined
|
51
|
Ctrl+Y
|
Delete to end of line
|
52
|
Ctrl+Z
|
Not defined
|
53
|
Ctrl+[
|
Esc (enter extended command mode)
|
54
|
Not defined
|
Not defined
|
55
|
Ctrl+]
|
Move to end or start of line, depending on cursor position
|
56
|
Not defined
|
Not defined
|
57
|
Not defined
|
Not defined
|