The full syntax for host is:
[prefix:]...[LUname@]hostname[:port]Prepending a p: onto hostname causes the connection to go through the telnet-passthru service rather than directly to the host. See PASSTHRU below.
Prepending an s: onto hostname removes the "extended data stream" option reported to the host. See -tn for further information.
A specific LU name to use may be specified by prepending it to the hostname with an @.
The port to connect to defaults to telnet. This can be overridden with the -port option, or by appending a port to the hostname with a colon :. (For compatability with previous versions of x3270 and with tn3270, the port may also be specified as a second, separate argument.)
The first part is the base model, which is either 3278 or 3279. 3278 specifies a monochrome 3270 display; 3279 specifies a color 3270 display.
The second part is the model number, which specifies the number of rows and columns. Model 4 is the default.
Model Number Columns Rows ---------------------------- 2 80 24 3 80 30 4 80 43 5 132 27Note: Technically, there is no such 3270 display as a 3279-4 or 3279-5, but most hosts seem to work with them anyway.
The third part specifies the Extended 3270 Data Stream, and is given as -E. It signals the host that the 3270 display is capable of displaying extended field attributes, and supports structured fields and query replies. A 3279 always uses the Extended Data Stream (whether or not -E is specified); for a 3278 it is optional.
The default model is 3279-4-E.
Some hosts are confused by the -E suffix on the terminal name, and will ignore the extra screen area on models 3, 4 and 5. Prepending an :s on the hostname removes the -E from the terminal name when connecting to such hosts.
Charset Name Q121 Code ------------------------- bracket - us-intl 01 german 03 finnish 09 uk 22 norwegian 23 french 30 hebrew - icelandic - belgian -The default character set is bracket, which useful for common IBM hosts which use EBCDIC codes 0xAD and 0xBD for the `[' and `]' characters, respectively.
If the host later negotiates to stop functioning in 3270 mode, s3270 will return to ANSI emulation.
When emulating an ANSI terminal, s3270 supports both character-at-a-time mode and line mode operation. When in line mode, the special characters and operational characteristics are defined as follows:
Mode/Character Setting --------------------------------- Translate CR to NL true Translate NL to CR false Erase previous character ^? Erase entire line ^U Erase previous word ^W Redisplay line ^R Ignore special meaning of next character ^V Interrupt ^C Quit ^\ End of file ^D
Attn attention key BackSpace move cursor left (or send ASCII BS) BackTab tab to start of previous input field CircumNot input ^ in ANSI mode, or ¬ in 3270 mode Clear clear screen CursorSelect Cursor Select AID Cut erase selected text Delete delete character under cursor (or send ASCII DEL) DeleteField delete the entire field DeleteWord delete the current or previous word Down move cursor down Dup duplicate field Enter Enter AID (or send ASCII CR) Erase erase previous character (or send ASCII BS) EraseEOF erase to end of current field EraseInput erase all input fields Execute(cmd) execute a command in a shell FieldEnd move cursor to end of field FieldExit clear to end of field and skip to next (5250 emulation) FieldMark mark field HexString(hex_digits) insert control-character string Home move cursor to first input field Insert set insert mode Key(keysym) insert key keysym Left move cursor left Left2 move cursor left 2 positions MonoCase toggle uppercase-only mode Newline move cursor to first field on next line (or send ASCII LF) NextWord move cursor to next word PA(n) Program Attention AID (n from 1 to 3) PF(n) Program Function AID (n from 1 to 24) PreviousWord move cursor to previous word Quit exit s3270 Reset reset locked keyboard Right move cursor right Right2 move cursor right 2 positions Script(command[,arg...]) run a script String(string) insert string (simple macro facility) SysReq System Request AID Tab move cursor to next input field ToggleInsert toggle insert mode Transfer(option=value,...) file transfer Up move cursor up
\b Left \f Clear \n Enter \pan PA key n \pfnn PF key nn \r Newline \t TabNote: The strings are in ASCII and converted to EBCDIC, so beware of inserting control codes.
There is also an alternate form of the String action, HexString, which is used to enter non-printing data. The argument to HexString is a string of hexadecimal digits, two per character. A leading 0x or 0X is optional. In 3270 mode, the hexadecimal data represent EBCDIC characters, which are entered into the current field. In ANSI mode, the hexadecimal data represent ASCII characters, which are sent directly to the host.
The complete list of special APL keysyms is as follows. Entries marked with an asterisk (*) represent simple aliases for standard EBCDIC characters.
APL Symbol Hex s3270 Keysym ------------------ ---- -------------------- A underbar 41 apl_Aunderbar alpha B0 apl_alpha B underbar 42 apl_Bunderbar bar 60* apl_bar C underbar 43 apl_Cunderbar circle 9D apl_circle circle bar ED apl_circlebar circle slope CF apl_circleslope circle star FD apl_circlestar circle stile CD apl_circlestile colon 7A* apl_colon comma 6B* apl_comma D underbar 44 apl_Dunderbar del BA apl_del del stile DC apl_delstile del tilde FB apl_deltilde delta BB apl_delta delta stile DD apl_deltastile delta underbar FC apl_deltaunderbar diamond 70 apl_diamond dieresis 72 apl_dieresis dieresis dot EC apl_dieresisdot divide B8 apl_divide dot 4B* apl_dot down arrow 8B apl_downarrow down caret 78 apl_downcaret down caret tilde CB apl_downcarettilde down shoe AB apl_downshoe down stile 8E apl_downstile down tack AC apl_downtack down tack jot FE apl_downtackjot down tack up tack DA apl_downtackuptack E underbar 45 apl_Eunderbar epsilon B1 apl_epsilon epsilon underbar 75 apl_epsilonunderbar equal 7E* apl_equal equal underbar E1 apl_equalunderbar F underbar 46 apl_Funderbar G underbar 47 apl_Gunderbar greater 6E* apl_greater H underbar 48 apl_Hunderbar I underbar 49 apl_Iunderbar iota B2 apl_iota iota underbar 74 apl_iotaunderbar J underbar 51 apl_Junderbar jot AF apl_jot K underbar 52 apl_Kunderbar L underbar 53 apl_Lunderbar left arrow 9F apl_leftarrow left bracket AD apl_leftbracket left paren 4D* apl_leftparen left shoe 9B apl_leftshoe less 4C* apl_less M underbar 54 apl_Munderbar N underbar 55 apl_Nunderbar not equal BE apl_notequal not greater 8C apl_notgreater not less AE apl_notless O underbar 56 apl_Ounderbar omega B4 apl_omega overbar A0 apl_overbar P underbar 57 apl_Punderbar plus 4E* apl_plus Q underbar 58 apl_Qunderbar quad 90 apl_quad quad divide EE apl_quaddivide quad jot 73 apl_quadjot quad quote DE apl_quadquote quad slope CE apl_quadslope query 6F* apl_query quote 7D* apl_quote quote dot DB apl_quotedot R underbar 59 apl_Runderbar rho B3 apl_rho right arrow 8F apl_rightarrow right bracket BD apl_rightbracket right paren 5D* apl_rightparen right shoe 9A apl_rightshoe S underbar 62 apl_Sunderbar semicolon 5E* apl_semicolon slash 61* apl_slash slash bar EA apl_slashbar slope B7 apl_slope slope bar EB apl_slopebar squad CC apl_squad star 5C* apl_star stile BF apl_stile T underbar 63 apl_Tunderbar tilde 80 apl_tilde times B6 apl_times U underbar 64 apl_Uunderbar underbar 6D* apl_underbar up arrow 8A apl_uparrow up caret 71 apl_upcaret up caret tilde CA apl_upcarettilde up shoe AA apl_upshoe up shoe jot DF apl_upshoejot up stile 8D apl_upstile up tack BC apl_uptack up tack jot EF apl_uptackjot V underbar 65 apl_Vunderbar W underbar 66 apl_Wunderbar X underbar 67 apl_Xunderbar Y underbar 68 apl_Yunderbar Z underbar 69 apl_Zunderbar
Copyright © 1989 by Georgia Tech Research Corporation, Atlanta,
GA 30332.
All Rights Reserved. GTRC hereby grants public use of this software.
Derivative works based on this software must incorporate this copyright
notice.
5250 Emulation Code Copyright © Minolta (Schweiz) AG, Beat Rubischon.