PF() action
In 3270 mode, the PF() action emulates one of the 24 Program Function (PF) keys on the 3270 keyboard. It sends a PF AID to the host and waits for the host to unlock the keyboard before returning.
In NVT mode, it emulates an xterm F key, sending the corresponding escape sequence to the host. Note that 1 through 4 are VT100 F codes, 5 through 20 are VT220 PF codes, and 21 through 24 are x3270 family extensions.
PF() parameter | Escape sequence |
---|---|
1 | Esc O P |
2 | Esc O Q |
3 | Esc O R |
4 | Esc O S |
5 | Esc [ 1 5 ~ |
6 | Esc [ 1 7 ~ |
7 | Esc [ 1 8 ~ |
8 | Esc [ 1 9 ~ |
9 | Esc [ 2 0 ~ |
10 | Esc [ 2 1 ~ |
11 | Esc [ 2 3 ~ |
12 | Esc [ 2 4 ~ |
13 | Esc [ 2 5 ~ |
14 | Esc [ 2 6 ~ |
15 | Esc [ 2 8 ~ |
16 | Esc [ 2 9 ~ |
17 | Esc [ 3 1 ~ |
18 | Esc [ 3 2 ~ |
19 | Esc [ 3 3 ~ |
20 | Esc [ 3 4 ~ |
21 | Esc [ 3 5 ~ |
22 | Esc [ 3 6 ~ |
23 | Esc [ 3 7 ~ |
24 | Esc [ 3 8 ~ |
Parameters
- n
- The PF key number, from 1 to 24
Examples
PF(1) PF(22)