Iron 3270
A real IBM 3270 terminal for z/OS and z/VM, right inside Visual Studio Code and IBM Bob.
Block-mode 3270 screens, the full PF/PA keyboard, verified TLS, IND$FILE file transfer and macros,
in an editor tab next to your code. Big iron, in your editor.
Website ·
Quick guide ·
Screenshots ·
Report an issue

Tested against real systems: z/OS with TSO/ISPF and CICS, z/VM, and MVS 3.8j.
Feedback is very welcome at spiersall@gmail.com.
Features
- A real 3270, not a scrolling shell. Protected and numeric fields, modified data tags,
keyboard locking and type-ahead, on models 2–5 (up to 27×132), Model 6 (62×160), a custom size of your own, or any size you choose when you connect, as 3278 or
3279, over TN3270 or TN3270E, with an authentic operator information area. Fourteen bundled fonts, from the classic 3270
font and DEC VT100, VT220 and VT320 styles to JetBrains Mono, Hack and Terminus, set globally or
per connection, or any font installed on your computer. And for nostalgia,
CRT Retro: phosphor glow, scanlines and flicker, per connection or per session.
- Every key you need. PF1–PF24, PA1–PA3, Enter, Clear, Reset, Attn, SysReq, Erase EOF, Erase
Input, Dup and Field Mark, on your keyboard or on a dockable on-screen 3270 keyboard. Remap any
key, mouse-wheel direction or side button in the keymap editor, including numeric keypad keys
(with Num Lock on or off) and Left or Right Ctrl pressed alone. Tilting the wheel scrolls left and
right. The cursor turns into a bar in Insert mode.
- Bring your setup with you. Import connections from IBM Personal Communications (
.ws),
Vista TN3270, x3270/wc3270 and other VS Code 3270 extensions, and keymaps from Personal
Communications (.kmp), Vista TN3270 (.key) and x3270, wc3270 and c3270. A preview shows what
carries over and what can't, before anything is saved. Passwords are never imported.
- Point and select. Double-click an ISPF menu option, an SDSF column or a function key label
such as
F3=Exit, and Iron 3270 moves the cursor there and presses Enter, as in PCOMM and
Vista.
- Connections in the Activity Bar. Save hosts, group them, and double-click to connect. Share
a connection with a colleague as a password-encrypted file. Each
session opens in its own editor tab, titled the way you choose, so splits and side-by-side work
just work. When the host finishes a long-running Enter in a tab you aren't looking at, a
notification tells you, and Iron 3270 can watch a screen for text such as
ENDED or ABEND.
- TLS done carefully. Certificates and host names are verified by default. Trust your company's
CA, or pin one certificate after reviewing it. There is no "accept anything" switch.
- IND$FILE transfers. Send and receive files with TSO, CMS and CICS: text or binary, RECFM,
LRECL, BLKSIZE and space allocation, batches of PDS members, progress and cancel.
- Editing that respects fields. Block selection with the mouse or the keyboard (Shift+arrows,
as in PCOMM), field-aware paste, Select JCL and Paste JCL,
nine clipboard buffers, screen history, find, and clickable URLs.
- Copy as Table and Print Screen. Mark an SDSF or ISPF list, or a report, and paste it into
Excel, Google Sheets or Numbers as cells, or copy it as CSV. Print the screen or save it as a
PDF from your browser's print dialog; nothing is written to disk.
- Macros. Record or write simple
.3270macro scripts that wait for the real screen state.
Passwords are never recorded. See the
macro guide.
- Private by design. No telemetry. Passwords live in VS Code's secure storage and never appear
in logs, macros or exported connections.


Getting started
- Click the Iron 3270 icon in the Activity Bar, then Add Connection.
- Enter the host, the port (23, or 992 for TLS), the terminal model and the host code page. Choose
TLS: verify certificate whenever your host supports it, and use Test Connection to check.
- Double-click the connection to open a session. Use Send and Receive on the toolbar to
transfer files.
Default keys
| Key |
3270 function |
Key |
3270 function |
| F1–F12 |
PF1–PF12 |
Shift+F1–F12 |
PF13–PF24 |
| Alt+F1 / F2 / F3 |
PA1 / PA2 / PA3 |
Enter |
Enter |
| Pause, Shift+Escape |
Clear |
Escape |
Reset |
| Ctrl+Pause |
Attn |
Ctrl+Shift+Y |
SysReq |
| Ctrl+End |
Erase EOF |
Ctrl+K |
On-screen keyboard |
| Shift+arrows |
Mark (select a box) |
Ctrl+↑ / ↓ |
Move the marked box |
While a terminal tab has focus, F1 sends PF1 instead of opening the Command Palette. PCOMM- and
x3270-style keymaps are built in, and the keymap editor lets you change any key. Coming from
another emulator? Import Keymap from Other Software… in the connections view's … menu
reads your PCOMM, Vista TN3270 or x3270/wc3270/c3270 keymap.

| Platform |
Status |
| Windows x64 |
Supported |
| Windows on ARM |
Supported: the protocol engine runs under Windows' built-in emulation (not yet tried on ARM hardware) |
| macOS 11 or later, Apple Silicon and Intel |
Supported |
| Linux x64 |
Supported: RHEL 8, 9 and 10, Rocky and Oracle Linux, Debian 12 and 13, Ubuntu 20.04 and later, SUSE and openSUSE 15, Amazon Linux 2023, Fedora. No extra packages needed. |
| Linux ARM64 |
Supported: the same distributions as Linux x64. Tested on a Raspberry Pi 5 (Debian 13). |
| IBM Bob |
Supported: install Iron 3270 from Open VSX in Bob's Extensions view |
| Remote SSH, WSL and containers |
Supported: the extension runs on the remote machine, and connections start from there |
| Virtual workspaces, such as GitHub Repositories in desktop VS Code |
Limited: terminal sessions, macros and keymaps work. File transfers, certificates, imports and exports use only local files. |
| VS Code for the Web |
Not supported: browsers cannot run the native 3270 protocol engine |
Reaching hosts through Tailscale, SSH or a proxy
Iron 3270 has no tunnel of its own. Use the tools you already trust for that, and point a
connection at the result:
- Tailscale or another VPN: connect as usual, using the host's Tailscale name or address.
- VS Code Remote-SSH: open a remote window on a machine that can reach the mainframe. Iron 3270
runs there, so its connections start from that machine.
- SSH port forward: run
ssh -L 2323:mainframe.example.com:23 you@jumphost, then connect to
localhost, port 2323. For TLS (usually port 992), keep TLS on and set Expected certificate
host name to the mainframe's name (here mainframe.example.com). The certificate is then
still fully verified, even though you connect to localhost.
- SOCKS proxy (for example
ssh -D 1080 you@jumphost): set Proxy to
socks5:localhost:1080, or socks5d:localhost:1080 if only the jump host can look up the
mainframe's name. With TLS, a proxy also needs TLS engine set to b3270 native TLS.
With an SSH tunnel, keep TLS on whenever the host offers it: SSH encrypts only as far as the jump
host.

Security and privacy
- TLS certificates and host names are verified by default. The alternatives are a CA you trust or one
pinned certificate, and a session-only exception always shows a warning.
- Client-certificate passphrases are kept in VS Code's SecretStorage.
- Macros cannot read files, start programs or reach the network.
- Your keymaps, toolbar buttons, session restore, saved clipboard buffers and protocol trace settings
come only from your user settings. A project you open can't change them.
- Iron 3270 sends no telemetry. Screen contents and keystrokes are never logged.
Support
Problems, questions or ideas: open an issue
in the public support repository. Issues are public, so remove host names, IP addresses and user
IDs from what you post. You can also email spiersall@gmail.com.
Report security problems privately by email: see the
security policy.
License and credits
Iron 3270 is free and licensed under BSD-3-Clause.
The protocol engine is b3270 from the x3270 suite by Paul Mattes
and contributors. The 3270 font is by Ricardo Banffy. Third-party licenses are listed in
THIRD-PARTY-NOTICES.md, which is included with the extension.
IBM, z/OS, z/VM, CICS and ISPF are trademarks of IBM. Iron 3270 is an independent project and is not
affiliated with IBM, the x3270 project, or Tom Brennan Software (Vista TN3270).
| |