How a 5250 terminal works
The IBM i display terminal: screens, fields, function keys and how TN5250 carries them.
A 5250 terminal is the display used with IBM i (earlier called AS/400 or iSeries). Like 3270 it is block mode: the host sends a screen, you fill in fields, and a key sends your changes back.
How it differs from 3270
- The keyboard is different. IBM i uses function keys F1 to F24,
Help,Field Exit,Roll UpandRoll Down,AttnandSysReq. See 5250 function keys. - Number fields use field exit and signs. See Field Exit and Field+.
- Screens are built from display files and menus on the host. Messages appear on the bottom line.
- Sessions are tied to a display device (a virtual device such as QPADEV0001). See 5250 devices.
The data stream
The host sends a 5250 data stream: write commands and orders, a format table that describes the input fields, and text in EBCDIC. When you press an AID key (Enter, a function key, Help, Roll), the terminal sends back the key, the cursor position and the changed fields. Only the changed fields travel.
TN5250
TN5250 carries that data stream over Telnet (RFC 1205). TN5250E (RFC 4777, which replaces RFC 2877) adds negotiation of the device name, user, password, keyboard type and code page through the Telnet NEW-ENVIRON option. That is how a client can ask for a named device.
Terminal types you may see:
IBM-3179-2 24 x 80 color display
IBM-3477-FC 27 x 132 color display
Screen sizes
IBM i supports 24 x 80 (the default) and 27 x 132 displays. Wide screens help full-screen list programs such as WRKACTJOB.