The flags to tn3270 are as follows:
minimum size emulated (rows*columns) terminal -------------- ------------ 27*132 3278 model 5 43*80 3278 model 4 32*80 3278 model 3 24*80 3278 model 2.
Emulation of the 3270 terminal is done in the \s-UNIX\s0 process. This emulation involves mapping 3270-style commands from the host into appropriate sequences to control the user's terminal screen. Tn3270 uses curses(3x) and the /etc/termcap file to do this. The emulation also involves simulating the special 3270 keyboard keys (program function keys, etc.) by mapping sequences of keystrokes from the ASCII keyboard into appropriate 3270 control strings. This mapping is terminal dependent and is specified in a description file, /etc/map3270, (see map3270(5)) or in an environment variable MAP3270 (and, if necessary, MAP3270A, MAP3270B, and so on - see mset(1)). Any special function keys on the ASCII keyboard are used whenever possible. If an entry for the user's terminal is not found, tn3270 looks for an entry for the terminal type unknown. If this is not found, tn3270 uses a default keyboard mapping (see map3270(5)).
The first character of each special keyboard mapping sequence is either an ASCII escape (ESC), a control character, or an ASCII delete (DEL). If the user types an unrecognized function key sequence, tn3270 sends an ASCII bell (BEL), or a visual bell if defined in the user's termcap entry, to the user's terminal and nothing is sent to the IBM host.
If tn3270 is invoked without specifying a remote host system name, it enters local command mode, indicated by the prompt ``tn3270>''. In this mode, tn3270 accepts and executes all the commands of telnet(1), plus one additional command:
While in command mode, any host login session is still alive but temporarily suspended. The host login session may be resumed by entering an empty line (press the RETURN key) in response to the command prompt. A session may be terminated by logging off the foreign host, or by typing ``quit'' or ``close'' while in local command mode.
/etc/map3270
The IBM 4994 style transparent mode command is invoked when tn3270 receives IBM 4994 style transparent output from the remote host. Output and input pipes are created for communication between the two processes. The pipes are closed when a 3270 clear command is received from the remote hosts, signalling the end of transparent mode output. Transparent mode is necessary for sending ASCII control characters over the 3270 terminal connection; ASCII graphics terminal support is accomplished this way. Developers of transcom commands should note that the transcom stdin pipe end will be in CBREAK mode, with ECHO and CRMOD turned off.
Not all 3270 functions are supported, nor all Yale enhancements.
Error conditions (attempting to enter data in a protected field, for example) should cause a message to be sent to the user's terminal instead of just ringing a bell.