Strovent SystemsSign in
Reference

IBM i VT100 key map: F1–F24, Field Exit, Error Reset, SysReq

In an IBM i VT100 or VT220 session, F3 is Esc then 3, F12 is Esc then =, Field Exit is Ctrl-X, Error Reset is Ctrl-R and Ctrl-C opens the System Request menu.

When IBM i runs a session in VT100 or VT220 full-screen mode, the Telnet server turns VT keys into 5250 functions with a keyboard map. The defaults below come from IBM's table of VT key values. An administrator can change the map, so if a key does not work, ask for the current one: DSPVTMAP shows it, and CHGVTMAP or SETVTMAP changes it.

"Esc 3" means press and release Esc, then press 3. Letters in Esc sequences can be upper or lower case.

Function keys

F1 to F9    Esc 1 to Esc 9
F10         Esc 0
F11         Esc -
F12         Esc =
F13         Esc !
F14         Esc @
F15         Esc #
F16         Esc $
F17         Esc %
F18         Esc ^
F19         Esc &
F20         Esc *
F21         Esc (
F22         Esc )
F23         Esc _
F24         Esc +

F1 to F12 use Esc and the top row of the keyboard. F13 to F24 use Esc and the same keys with Shift on a US keyboard.

The default map also accepts the VT220 function-key codes (Esc [ 11 ~ for F1 up to Esc [ 34 ~ for F20) and the PF1 to PF4 keys (Esc O P to Esc O S) as F1 to F4. If your client's F-keys send those codes, they work directly. The Esc sequences always work.

Field and editing keys

Enter             Return or Ctrl-M
Field Exit        Ctrl-X, Ctrl-K or Esc X
Field Minus       Esc M
Field Advance     Tab
Field Backspace   Esc Tab
Error Reset       Ctrl-R or Esc R
Erase Input       Ctrl-E
Insert            Esc I, Esc Delete or the Insert Here key
Delete            Delete
Duplicate         Esc D
Home              Ctrl-O
New Line          Esc Line Feed (Ctrl-J)

Paging, help and system keys

Page Down (Roll Up)    Ctrl-D, Ctrl-F or Next Screen
Page Up (Roll Down)    Ctrl-B, Ctrl-U or Prev Screen
Help                   Ctrl-? or Esc H
Print                  Ctrl-P or Esc P
Clear Screen           Esc C
Redraw screen          Ctrl-L or Esc L
System Request         Ctrl-C or Esc S
Attention              Ctrl-A or Esc A
Test Request           Ctrl-T

Ctrl-C does not interrupt a program here. It opens the System Request menu, which IBM says appears straight away in a VT session. See The IBM i System Request menu.

How errors behave

A real 5250 keyboard locks when you type outside an input field. In a VT session the server rings the bell and leaves the keyboard unlocked. When an application locks the keyboard, every key rings the bell until you press the key mapped to Error Reset, which is Ctrl-R by default.

Things that catch people out

  • Ctrl-S and Ctrl-Q. Many VT clients use them for XON/XOFF flow control. IBM says not to map 5250 functions to them when the client has flow control on.
  • Screen size. The server sends at most 24 rows by 80 columns in VT mode.

A TN5250 session avoids the map completely and gives you the real 5250 keys. If you meant to connect with 5250 and got VT mode, see TN5250 garbage or VT100 screen after connecting to IBM i.

Sources

Spotted a mistake? Email [email protected].