tn5250 HOWTO PDF
tn5250 HOWTO PDF
A
compose \ a to a
compose ^ A to
^
A
compose ^ a to ^a
compose ~ A to
~
A
compose ~ a to ~a
compose " A to
A
compose " a to a
compose O A to
A
compose o a to a
compose 0 A to
A
compose 0 a to a
compose A A to
A
compose a a to a
compose A E to
compose a e to
compose , C to C
compose , c to c
compose C to C
compose c to c
compose E to
`
E
compose e to `e
compose \ E to
E
compose \ e to e
compose ^ E to
^
E
compose ^ e to ^e
compose " E to
E
compose " e to e
compose I to
`
I
compose i to
`
i
25
TN5250 HOWTO Section 10: Appendix
compose \ I to
I
compose \ i to
i
compose ^ I to
^
I
compose ^ i to
^
i
compose " I to
I
compose " i to
i
compose - D to not complete
compose - d to not complete
compose ~ N to
~
N
compose ~ n to ~n
compose O to
`
O
compose o to `o
compose \ O to
O
compose \ o to o
compose ^ O to
^
O
compose ^ o to ^o
compose ~ O to
~
O
compose ~ o to ~o
compose " O to
O
compose " o to o
compose / O to
compose / o to
compose U to
`
U
compose u to `u
compose \ U to
U
compose \ u to u
compose ^ U to
^
U
compose ^ u to ^u
compose " U to
U
compose " u to u
compose \ Y to
Y
compose \ y to y
compose T H to not complete
compose t h to not complete
compose s s to
compose " y to y
compose s z to
compose i j to y
10.2 Key map using XTerm
This is a sample key map using XTerm. This example can either replace the default keymap installed
by tn5250 or be appended to your .Xdefaults (or .Xresources) le in your home directory.
xt5250*VT100.Translations: #override\n\
<Key>KP Add: string("\030") \n\
<Key>KP Subtract: string("\033M") \n\
<Key>KP Multiply: string("*") \n\
<Key>KP Divide: string("/") \n\
<Key>KP Enter: string("\033OM") \n\
<Key>BackSpace: string("\177") \n\
<Key>End: string("\033[4~") \n\
<Key>KP 0: string("0") \n\
26
TN5250 HOWTO Section 10: Appendix
<Key>KP 1: string("1") \n\
<Key>KP 2: string("2") \n\
<Key>KP 3: string("3") \n\
<Key>KP 4: string("4") \n\
<Key>KP 5: string("5") \n\
<Key>KP 6: string("6") \n\
<Key>KP 7: string("7") \n\
<Key>KP 8: string("8") \n\
<Key>KP 9: string("9") \n\
<Key>Scroll Lock: string("\033H") \n\
~Shift<Key>Print: string("\020") \n\
<Key>Control L: string("\022") \n\
<Key>Escape: string("\001") \n\
Shift <Key>Print: string("\003") \n\
~Shift <Key>F1: string("\0331") \n\
~Shift <Key>F2: string("\0332") \n\
~Shift <Key>F3: string("\0333") \n\
~Shift <Key>F4: string("\0334") \n\
~Shift <Key>F5: string("\0335") \n\
~Shift <Key>F6: string("\0336") \n\
~Shift <Key>F7: string("\0337") \n\
~Shift <Key>F8: string("\0338") \n\
~Shift <Key>F9: string("\0339") \n\
~Shift <Key>F10: string("\0330") \n\
~Shift <Key>F11: string("\033-") \n\
~Shift <Key>F12: string("\033=") \n\
Shift <Key>F1: string("\033!") \n\
Shift <Key>F2: string("\033@") \n\
Shift <Key>F3: string("\033#") \n\
Shift <Key>F4: string("\033$") \n\
Shift <Key>F5: string("\033%") \n\
Shift <Key>F6: string("\033^") \n\
Shift <Key>F7: string("\033&") \n\
Shift <Key>F8: string("\033*") \n\
Shift <Key>F9: string("\033(") \n\
Shift <Key>F10: string("\033)") \n\
Shift <Key>F11: string("\033 ") \n\
Shift <Key>F12: string("\033+") \n\
Shift <Key>Tab: string("\033[Z") \n\
Shift <Key>Left: string("\033\010") \n\
Shift <Key>Right: string("\033\025") \n\
Shift <Key>Home: string("\033\006") \n\
<Key>Home: string("\033[1~") \n\
~Shift <Key>Delete: string("\033[3~") \n\
~Shift <Key>Insert: string("\033[2~")
10.3 Complete .Xdefaults le with custom colors, fonts, and key map
This is the complete .Xdefaults le I use with xt5250. I made the cursor gold and the mouse pointer
yellow. I selected a xed 7x13 font. I also forced xterm to leave o the left scroll bar and indicated that
this is not a login shell.
xt5250*cursorColor : gold
xt5250*pointerColor : yellow
27
TN5250 HOWTO Section 10: Appendix
xt5250*Font : 7x13
xt5250*loginShell : off
xt5250*scrollBar : off
xt5250*VT100.Translations: #override\n\
<Key>KP Enter: string("\033OM") \n\
<Key>BackSpace: string("\177") \n\
<Key>End: string("\033[4~") \n\
<Key>Scroll Lock: string("\033H") \n\
~Shift<Key>Print: string("\020") \n\
<Key>Escape: string("\001") \n\
Shift <Key>Print: string("\003") \n\
~Shift <Key>F1: string("\033[[A") \n\
~Shift <Key>F2: string("\033[[B") \n\
~Shift <Key>F3: string("\033[[C") \n\
~Shift <Key>F4: string("\033[[D") \n\
~Shift <Key>F5: string("\033[[E") \n\
~Shift <Key>F6: string("\033[17~") \n\
~Shift <Key>F7: string("\033[18~") \n\
~Shift <Key>F8: string("\033[19~") \n\
~Shift <Key>F9: string("\033[20~") \n\
~Shift <Key>F10: string("\033[21~") \n\
~Shift <Key>F11: string("\033[23~") \n\
~Shift <Key>F12: string("\033[24~") \n\
Shift <Key>F1: string("\033[25~") \n\
Shift <Key>F2: string("\033[26~") \n\
Shift <Key>F3: string("\033[28~") \n\
Shift <Key>F4: string("\033[29~") \n\
Shift <Key>F5: string("\033[31~") \n\
Shift <Key>F6: string("\033[32~") \n\
Shift <Key>F7: string("\033[33~") \n\
Shift <Key>F8: string("\033[34~") \n\
Shift <Key>F9: string("\033[35~") \n\
Shift <Key>F10: string("\033[36~") \n\
Shift <Key>F11: string("\033[37~") \n\
Shift <Key>F12: string("\033[38~") \n\
Shift <Key>Tab: string("\033[Z") \n\
Shift <Key>Left: string("\033\010") \n\
Shift <Key>Right: string("\033\025") \n\
Shift <Key>Home: string("\033\006") \n\
<Key>Home: string("\033[1~") \n\
~Shift <Key>Delete: string("\033[3~") \n\
~Shift <Key>Insert: string("\033[2~")
10.4 Sample tn5250rc
This is a portion of the .tn5250rc le I use. Only the hostnames, usernames, and passwords have
been changed.
host1 {
host = host1.mydomain.com
env.TERM = IBM-3477-FC
env.USER = MYUSER
28
TN5250 HOWTO Section 10: Appendix
env.IBMSUBSPW = MYPASSWORD
+local print key
}
host2 {
host = ssl:host2.mydomain.com
env.TERM = IBM-3477-FC
+local print key
+ssl verify server
ssl ca file = /home/user/host2/host2.cert
}
host2-print {
host = ssl:host2.mydomain.com
env.DEVNAME = PRTASCII
env.IBMMFRTYPMDL = *IBM3116
+ssl verify server
ssl ca file = /home/user/host2/host2.cert
outputcommand = scs2ascii | lpr
}
10.5 Possible values for use with Host Print Transform on V5R1
Below are the possible values that can be used with Host Print Transform on a V5R1 iSeries.
*IBM2380 *IBM4019
*IBM2381 *IBM4019HP
*IBM2390 *IBM4029
*IBM2391 *IBM4029HP
*IBM3112 *IBM4037
*IBM3116 *IBM4039HP
*IBM3130 *IBM4070
*IBM3812 *IBM4070EP
*IBM3816 *IBM4072
*IBM3912HP *IBM4076
*IBM3916HP *IBM42011
*IBM39302 *IBM42012
*IBM39303 *IBM42013
*IBM42021 *IBM4244ASF
*IBM42022 *IBM4244DUAL
*IBM42023 *IBM4247MAN
*IBM42071 *IBM4247ASF
*IBM42072 *IBM4247DUAL
*IBM42081 *IBM4308
*IBM42082 *IBM4312
*IBM4212 *IBM4317
*IBM4216 *IBM4320
*IBM4226 *IBM4322
*IBM4230 *IBM4324
*IBM4232 *IBM4332
*IBM4244MAN *IBM4340
29
TN5250 HOWTO Section 10: Appendix
*IBM47121 *IBMPAGESNPB
*IBM47122 *IBMPAGES300
*IBM47221 *IBMPAGES300NPB
*IBM47222 *IBM6400
*IBM4770 *IBM6400EP
*IBM4912 *IBM6404
*IBM5152 *IBM6404EP
*IBM5201 *IBM6408
*IBM5202 *IBM6408EP
*IBM5204 *IBM6412
*IBM5216 *IBM6412EP
*IBM5575 *INFOPRINT12
*IBMPAGES *INFOPRINT20
*INFOPRINT21 *HPIIISI
*INFOPRINT32 *HP4
*INFOPRINT40 *HP5
*INFOPRINT2000 *HP5SI
*INFOPRINT8C *HP6
*CPQPM15 *HP1100
*CPQPM20 *HP4000
*HPII *HP5000
*HPIID *HP8000
*HPIIP *HPDBCS
*HPIII *HPCOLORLJ
*HPIIID *HP1200C
*HPIIIP *HP1600C
*HP310 *LEXOPTRAT
*HP320 *LEXOPTRAW
*HP500 *LEX2380
*HP520 *LEX2381
*HP540 *LEX2390
*HP550C *LEX2391
*HP560C *LEX4227
*HPPAINT *EPAP2250
*LEXOPTRA *EPAP3250
*LEXOPTRAC *EPAP5000
*LEXOPTRAN *EPAP5500
*LEXOPTRAS *EPDFX5000
*LEXOPTRASC *EPDFX8000
*EPFX850 *EPEPL7000
*EPFX870 *EPEPL8000
*EPFX1170 *ESCPDBCS
*EPLQ510 *NECP2
*EPLQ570 *NECP2200
*EPLQ860 *NECP2200XE
*EPLQ870 *NECP5200
*EPLQ1070 *NECP5300
*EPLQ1170 *NECP6200
*EPLQ2550 *NECP6300
*EPLX810 *NECPCPR201
*EPSQ870 *CANLIPS3
*EPSQ1170 *CANLIPS3NPB
*NONE *OKI3410
30
TN5250 HOWTO Section 10: Appendix
*OKI184IBM *PAN1123EP
*OKI320IBM *PAN1124EP
*OKI321IBM *PAN1124IEP
*OKI390IBM *PAN1180EP
*OKI391IBM *PAN1180IEP
*OKI393IBM *PAN1191EP
*OKI590IBM *PAN1624EP
*OKI591IBM *PAN1654EP
*OKI400 *PAN1695EP
*OKI800 *PAN2123EP
*OKI810 *PAN2124EP
*OKI820 *PAN2180EP
*PAN2624EP *WSCSTLEGAL
*PAN4410HP *WSCSTEXECUTIVE
*PAN4420HP *WSCSTLEDGER
*PAN4430HP *WSCSTA3
*PAN4450IHP *WSCSTA4
*PAN4451HP *WSCSTA5
*XRX4215MRP *WSCSTB4
*XRX4219MRP *WSCSTB5
*XRX4220MRP *WSCSTCONT80
*XRX4230MRP *WSCSTCONT132
*XRX4235 *WSCSTNONE
*XRX4700II *WSCST
*WSCSTLETTER
31