TN5250(1)
β¨ TN5250 β¨
okay bestie, welcome to the TN5250(1) page from the General Commands Manual π this is the whole vibe: tn5250 is literally an implementation of the 5250 telnet protocol. no cap. sit down, grab a π, and let's get into it.
πΈ NAME πΈ
tn5250 β an implementation of the 5250 telnet protocol π«Ά
π SYNOPSIS π
tn5250 [OPTIONS] HOSTNAME
xt5250 [OPTIONS] HOSTNAME
tn5250 -version
π¦ DESCRIPTION π¦
tn5250 emulates IBM's 5250 compatible terminals so you can connect over TCP/IP to an IBM AS/400. π
The terminal emulation works on any local terminal supported by curses, and it provides 132x27 and full colour support where possible. it's giving main character energy, honestly.
An IBM 5250 terminal supports a number of special keys, and does a lot of processing itself before sending data to the host system. and because a standard ASCII terminal does not support all these keys, tn5250 uses control sequences to perform the operations. the way it has to work around the keyboard... iconic honestly. π§
Named session support (with the env.DEVNAME option) is available for most versions of OS/400, but is only supplied with V4R3 and later versions. For V3R2, V3R7, V4R1 and V4R2, please see informational APAR II10918. iykyk. π
β¨ OPTIONS β¨
tn5250 options are described in the tn5250rc(5) man page. that's it, that's the section β go read that one, bestie, it's where all the flags live. π
π USAGE π
This manual assumes that you are familiar with a real 5250 terminal, or another 5250 emulator, and only describes features relevant to tn5250 itself. so like, we're not re-teaching you the whole 5250 thing, we're just doing the tn5250-specific part. periodt. π
π Keyboard Mapping π
The following list shows the 5250 functions implemented by tn5250, and the corresponding keypresses. Keys are represented as Emacs does: C-a means hold Ctrl and press A, M-a means press Esc or C-g followed by A, and C-M-a means press Esc or C-g followed by C-a. Most setups also let you use the Alt or Meta key for M- keypresses. πΉ
- F1 - F10 β
f1tof10,M-1toM- - F11 β
f11[1],M-- - F12 β
f12[1],M-= - F13 - F24 β
f13tof24[1],M-!toM-+ - Enter β
return,enter,C-j,C-m - Left β
left - Right β
right - Up β
up - Down β
down - Roll Up β
next,pagedown,C-d,C-f - Roll Down β
prev,pageup,C-b,C-u - Backspace β
backspace[1] - Home β
home,C-o - End β
end - Insert β
insert,M-i,M-delete - Delete β
delete[1] - Reset β
C-r,M-r - Print β
C-p,M-p - Help β
M-h - SysReq β
C-c,M-s - Clear β
M-c - FieldExit β
C-k,M-x - TestReq β
C-t - Toggle β
M-t - Erase β
C-e - Attn β
C-a,M-a - Dup β
M-d - Field+ β
C-x,+[2] - Field- β
M-m,-[2] - NewLine β
C-M-j - Next Field β
tab,C-i - Prev Field β
backtab[1] - Toggle mouse β
C-v - Refresh β
C-l,M-l - Quit β
C-q
- Which keys generate
f11-f24,backtab,backspaceanddeleteis very dependent on the configuration of the terminal. π +and-only work as Field+ and Field- in signed numeric fields.
π Display π
The screen display tries to be the same as a colour 5250 terminal. There are some unavoidable differences though:
- ASCII terminals (and
curses) do not support the 5250 column separators. π - Some terminals (mostly ones based on the VGA text mode) do not support underlining. If this is the case and
tn5250does not detect it automatically, you should pass the-uoption. - Some terminals (such as
xterm) do not support blinking text. π
π EXAMPLES π
These are some examples of the use of tn5250:
tn5250 as400sysβ Connect to the systemas400sys, using the default translation map (37) and a generated session name (QPADEV####). lowkey the easiest way in π«Άtn5250 map=870 env.DEVNAME=session1 env.TERM=IBM-3477-FC as400sysβ Connect toas400sysusing the translation map for CCSID870(Eastern Europe), the session nameSESSION1and with a terminal supporting colour and a 132x27 display. look at her go β¨
π BUGS π
Please report any bugs you find to https://github.com/tn5250/tn5250/issues β do not suffer in silence, bestie, tell the devs π
π SEE ALSO π
tn5250rc(5), lp5250d(1), https://tn5250.github.io/, RFC1205, RFC2877, II10918.
π₯ COPYRIGHT π₯
tn5250 is copyright 1997 - 2008 Michael Madore. This manpage is copyright 1999 - 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 π β¨ this little write-up is dated 12 November 2001 and it lives under the name TN5250 β go slay some AS/400 sessions, ily π«Άππ¦
π¦ 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