Function and Edit Keys for BBj Character Devices
Description
BBj considers a character device to have two groupings of loadable keys on the keyboard. This requires two different mnemonics to reference the different groups:
-
The 'FL' mnemonic specifies that you are dealing with the function keys. These are the keys normally labeled with either 'F' or 'PF'.
-
The 'EL' mnemonic specifies that you are dealing with keys other than function keys. These keys include cursor keys (up, down, left and right arrows) and edit operation keys (insert, delete, home, end, page down and page up), and are referred to here as "edit keys."
Both types of key load mnemonics are followed by a parameter string that contains a function code and any additional parameters required for that function. The function code must be the first byte of the string.
For the TermConsole device (equivalent to PRO/5) on a UNIX or LINUX operating system, the function and edit key numbers used to identify the keys to be loaded are as follows:
Key Numbers |
Function keys as defined by termcap (use with 'FL' mnemonic) |
Termcap Codes |
00-09 |
F1 through F10 * |
K1 through K0OrK0 through K9 in K0 mode |
10-31 |
F11 through F32 |
KA through KV |
* At a console prompt, F1 through F4 will store mapped values and be available inside
running code, but not from the command prompt when a program is not running. See also Command History.
Key Numbers |
Function keys as defined by termcap (use with 'EL' mnemonic) |
Termcap codes |
00 |
left arrow |
kl |
01 |
right arrow |
kr |
02 |
up arrow |
ku |
03 |
down arrow |
kd |
04 |
Home key |
kh |
05 |
End key |
EN |
06 |
Page Up |
PU |
07 |
Page Down |
PD |
08 |
Insert |
IN |
09 |
Delete |
DL |
For the SysConsole/SysWindow character device (similar to the VPRO/5 SysWindow) on a graphics-capable UNIX, LINUX or Windows operating system, the available function and edit keys are listed below. While every effort has been made to maintain compatibility with the previous structure used by VPRO/5, certain changes had to be made in BBj due to the nature of Java's KeyEvent constants. Please refer to the notes in the tables below for differences in function and edit key availability between VPRO/5 and BBj.
Key Numbers |
Function keys as defined by termcap (use with 'FL' mnemonic) |
Notes |
00-11 |
F1 through F12 |
|
12-23 |
SHIFT + F1 through SHIFT + F12 |
|
24-35 |
CTRL + F1 through CTRL + F12 |
|
36-47 |
ALT + F1 through ALT + F12 |
ALT + F6 May not be available in Windows |
Key Numbers |
Edit keys as defined by termcap (use with 'EL' mnemonic) |
Notes |
0 |
left arrow |
|
1 |
right arrow |
|
2 |
up arrow |
|
3 |
down arrow |
|
4 |
home |
|
5 |
end |
|
6 |
page up |
|
7 |
page down |
|
8 |
insert |
|
9 |
delete |
|
10 |
CTRL + left arrow |
|
11 |
CTRL + right arrow |
|
12 |
CTRL + up arrow |
|
13 |
CTRL + down arrow |
|
14 |
CTRL + home |
|
15 |
CTRL + end |
|
16 |
CTRL + page up |
|
17 |
CTRL + page down |
|
18 |
CTRL + insert |
|
19 |
CTRL + delete |
|
20 |
SHIFT + left arrow |
|
21 |
SHIFT + right arrow |
|
22 |
SHIFT + up arrow |
|
23 |
SHIFT + down arrow |
|
24 |
SHIFT + home |
|
25 |
SHIFT + end |
|
26 |
SHIFT + page up |
|
27 |
SHIFT + page down |
|
28 |
SHIFT + insert |
|
29 |
SHIFT + delete |
|
30 |
SHIFT + CTRL + left arrow |
|
31 |
SHIFT + CTRL + right arrow |
|
32 |
SHIFT + CTRL + up arrow |
|
33 |
SHIFT + CTRL + down arrow |
|
34 |
SHIFT + CTRL + home |
|
35 |
SHIFT + CTRL + end |
|
36 |
SHIFT + CTRL + page up |
|
37 |
SHIFT + CTRL + page down |
|
38 |
SHIFT + CTRL + insert |
|
39 |
SHIFT + CTRL + delete |
|
40 |
ALT + left arrow |
|
41 |
ALT + right arrow |
|
42 |
ALT + up arrow |
|
43 |
ALT + down arrow |
|
44 |
ALT + home |
|
45 |
ALT + end |
|
46 |
ALT + page up |
|
47 |
ALT + page down |
|
48 |
ALT + insert |
|
49 |
ALT + delete |
|
50 |
CTRL + numeric keypad slash |
|
51 |
CTRL + numeric keypad asterisk |
|
52 |
CTRL + numeric keypad minus |
|
53 |
CTRL + numeric keypad plus |
|
54 |
ALT + numeric keypad slash |
|
55 |
ALT + numeric keypad asterisk |
|
56 |
ALT + numeric keypad minus |
|
57 |
ALT + numeric keypad plus |
|
58 |
ALT + numeric keypad enter |
|
59 |
ALT + escape |
This may not be useable in Windows; it causes the SysConsole or SysWindow to move below all other open application windows on the screen. |
60 |
SHIFT + tab |
|
61 |
CTRL + tab |
This may have no effect in Windows. |
62 |
ALT + tab |
This may not be useable in Windows; it pops a new window to tab through all other open application windows. |
63 |
ALT + backspace |
|
64 |
Duplicate of #58 |
Not available for use in BBj. |
65 |
CTRL + print screen |
This may have no effect in Windows. |
66 |
numeric keypad 5 |
NUMLOCK must be on for this key to be functional in BBj. |
67 |
CTRL + numeric keypad 5 |
NUMLOCK must be on for this key to be functional in BBj. |