TN5250RC(5)
β¨ NAME β¨
tn5250rc β the configuration file for tn5250 and lp5250d. π
π DESCRIPTION π
okay so bestie, here's the tea: the tn5250rc file is literally just groups of options for tn5250 and lp5250d. When a hostname gets passed to one of these programs, the named group is looked up in tn5250rc, and any options given in that group get processed. that's the whole vibe. π
If a named group is found, and it defines a host option, that option specifies the server. Otherwise, the host parameter you gave to the program is used instead. fr fr.
A group of options looks like this:
groupname {
+boolean
option=value
...
}
Each group of options starts with the group name, followed by a left brace (curly bracket) character. Following lines should have one option on each line. The last line of the group has a single right brace. no cap, that's it. π¦
The global tn5250rc file may be overridden by the user's ~/.tn5250rc file. π
π OPTIONS π
The options given here may be used inside a section of the configuration file, or on the tn5250 or lp5250d command line. Most options take the form OPTION=VALUE. Options listed with a leading +/- can be either turned on (+OPTION) or off (-OPTION). slay.
π Common Options
These options apply to both printer and display emulation sessions. two birds, one config file. π«Ά
host=URLβ set the host to connect to. The URL is of the form[PROTOCOL:]HOSTNAME[:PORT]. The default protocol, if you don't supply one, istn5250. Peep the Protocols section below for descriptions of the available protocols.map=CCSIDβ set the translation table between ASCII and EBCDIC. This should match the CCSID of the interactive job. The default is37. See Translation Maps below for more info. πenv.DEVNAME=NAMEβ set the device name for the AS/400 to assign to the 5250 session. This should be up to ten characters long and consist of only letters and numbers. It will be converted to uppercase and used as the name of the 5250-compatible device on the AS/400. There may only be one session active with any given name at one time. one name, one session, that's the rule. πtrace=TRACEFILEβ log all actions to TRACEFILE.
π¨ bestie, warning: this file will get very large, and may contain sensitive information such as the password used to log in. guard it with your life. π
+/-ssl_verify_serverβ if set, then verify that the server's certificate was issued by a CA in the file given by thessl_ca_fileoption. If the certificate's issuer cannot be verified, do not connect to the server. πssl_ca_file=CAFILEβ specify the file containing the certificate for the CA that issued the server's certificate. If the server certificate is self-signed, CAFILE should contain the certificate displayed by the Digital Certificate Manager option Copy and paste certificate.ssl_cert_file=CERTFILEβ specify the file containing the personal certificate, in PEM format. This must be a certificate associated with your user profile on the AS/400 by DCM.ssl_pem_pass=PASSWORDβ if the personal certificate given byssl_cert_fileis password protected, the password may be given here to bypass the password prompt. iconic.
πΈ Display Options
These options are specific to tn5250 and xt5250. main character energy only. β¨
+/-underscoresβ force or disable the use of underscore characters instead of the underline attribute, for terminals that do not support underlining but wheretn5250does not work this out itself.+/-rulerβ turn the ruler feature on or off. When enabled, the row and column of the cursor will be highlighted. π+/-mouseβ turns on using the mouse automatically to move the cursor. You can toggle usage of mouse reporting (for example, to turn it off to select text instead) by pressingC-v. πenv.TERM=MODELβ set the terminal model name for the emulation session to use. The default depends on whether the terminal supports colour, and whether it is large enough to support the large terminal size. See Display Types below for valid model names.
The default model emulated is an IBM-3179-2, a 24x80 colour terminal.
font_80=FONTβ iftn5250is running in an xterm, sets the font to change to when the terminal is in 80 column mode. This should be a valid X font name, such as can be chosen withxfontsel.font_132=FONTβ if the emulated terminal has a size of 27x132, set the font to use in 132 column mode, as for thefont_80option.beep_command=COMMANDβ if present, will run the supplied command instead of using the terminal beep. π+/-uninhibitedβ if enabled, automatically resets the input inhibited state when cursor movement keys or function keys are pressed. The default is disabled.env.VARIABLE=VALUEβ set any other environment variables controlling the terminal session. A list of relevant variables is given in section 5 ofRFC2877.
π§ Printer Options
outputcommand=COMMANDβ set the command that will be run to receive printer output. The default command isscs2ascii |lpr. π¨οΈenv.IBMMFRTYPMDL=NAMEβ set the name of the host print transform description to use on the AS/400. This is the same as theMFRTYPMDLparameter on theCRTDEVPRTcommand. See the CL Reference or the online help for a list of valid values.env.VARIABLE=VALUEβ set any other environment variables controlling the printer session. A list of relevant variables is given in section 7 ofRFC2877. More generally, the variables are the parameters of theCRTDEVPRTcommand, with a prefix ofIBM.
π¦ OPTION VALUES π¦
β Protocols
The supported protocols for the emulation session are listed below. pick your fighter. π₯
telnetβ connect to the AS/400 using a normal unencrypted telnet connection.tn5250is an alias fortelnet.sslβ connect securely using an encrypted SSL session. This option is only available iftn5250was compiled with SSL support. πdebugβ instead of connecting to a server, replay the trace generated by thetraceoption. The path to the trace file should be given instead of the hostname. π
π Translation Maps
CCSIDs on the AS/400 are listed in Appendix G of IBM manual SC41-5101-01, AS/400 National Language Support. This manual is available on the web at <http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AWC01/G.2>.
Currently recognised values for the translation map are: 37, 256, 273, 277, 278, 280, 284, 285, 290, 297, 420, 424, 500, 870, 871, 875, 880, 905, and 1026. Most of these are translated to ISO-8859-1, also known as Latin 1. Some of them contain characters only present in another encoding, which is used instead. The valid CCSID values, and the Unix encoding used, are listed below. π
37βISO-8859-1β US, Canada, Netherlands, Portugal, Brazil, Australia, New Zealand256βISO-8859-1β Netherlands273βISO-8859-1β Austria, Germany277βISO-8859-1β Denmark, Norway278βISO-8859-1β Finland, Sweden280βISO-8859-1β Italy284βISO-8859-1β Spanish, Latin America285βISO-8859-1β United Kingdom290βJIS_X0201β Katakana Extended297βISO-8859-1β France420βISO-8859-6β Arabic424βISO-8859-8β Hebrew500βISO-8859-1β Belgium, Canada, Switzerland870βISO-8859-2β Eastern Europe871βISO-8859-1β Iceland875βISO-8859-7β Greek880βISO-8859-5β Cyrillic905βISO-8859-3β Turkey - Latin31026βISO-8859-9β Turkey - Latin5
If possible, configure your terminal to use the appropriate encoding if your AS/400 uses any of these CCSIDs. do it for the culture. π
π Display Types
The following values are valid for the env.TERM option.
IBM-3179-2β 24x80 colorIBM-3180-2β 27x132 monochromeIBM-3196-A1β 24x80 monochromeIBM-3477-FCβ 27x132 colorIBM-3477-FGβ 27x132 monochromeIBM-5251-11β 24x80 monochromeIBM-5291-1β 24x80 monochromeIBM-5292-2β 24x80 color
π₯ EXAMPLES π₯
Define a connection named dsp01 that connects to the machine iseries.example.com, using the German CCSID, a 132 column terminal, and printing underscore characters instead of using underlines.
disp01 {
host = iseries.example.com
map = 273
env.TERM = IBM-3477-FC
+underscores
}
Define a printer connection, using host print transform to produce PCL output for an HP Laserjet compatible printer. π¨οΈβ¨
print01 {
host = iseries.example.com
env.DEVNAME = HPLJ01
env.IBMMFRTYPMDL = *HP4
}
Define a secure SSL session, checking the server's certificate against the CA certificare stored in cacert.pem, and using the client certificate in jbloggs.pem to sign on automatically. π
secure01 {
host = iseries.example.com
+ssl_verify_server
ssl_ca_file = cacert.pem
ssl_cert_file = jbloggs.pem
}
π« SEE ALSO π«
tn5250(1), lp5250d(1), <https://tn5250.github.io/>, RFC1205, RFC2877, II10918.
π COPYRIGHT π
tn5250 is copyright 1997 - 2008 Michael Madore. This manpage is copyright 2001 - 2008 Carey Evans.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
π«Ά AUTHORS π«Ά
tn5250 was written by Michael Madore, Jay Felice, Scott Klement and others; see the AUTHORS file for details. This manual page was written by Carey Evans.
and that's the whole page bestie π it's dated 12 November 2001, it lives in section TN5250RC(5), and honestly? it ate. go set up your sessions, you got this. πβ¨
π¦ where this page comes from
- fedora 43: tn5250 0.18.0-2.fc43 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: tn5250 0.18.0-2.fc43 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: tn5250 0.18.0-3.fc44 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: tn5250 0.18.0-3.fc44 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms