Top
Best
New

Posted by norbert_kehrer 4/8/2025

Show HN: Connecting an IBM 3151 terminal to a mainframe [video](www.youtube.com)
The IBM 3151 from 1987 is an interesting ASCII terminal. Unlike "normal" serial terminals, it not only supports the so-called "character mode", where after each keypress there is an interaction with the host computer (like with a Unix terminal), but it also has a "block mode". This means, you can send it commands to define fields for input and output on the screen (like a form to fill out). The terminal then handles autonomously all the the user input, and when the user is done and presses a special key (Enter or a function key), all the entries in the form are transferred to the host in one go.

This is very similar but unfortunately not identical to the so-called 3270 terminals used by IBM mainframe computers. Therefore, I wrote a little C program to translate between the differing protocols of 3270 and 3151 terminals enabling a 3151 to be connected to a mainframe.

I made a video describing a little bit the 3151 terminal and the interface program and showing how it looks like to work with the (emulated) mainframe on an 3151. The source code and Windows binary are on github for you to try out, if you happen to have a 3151 terminal. The link is in the description of the video.

127 points | 44 commentspage 2
awaymazdacx5 4/8/2025|
building compilers for discursive ASCII 3151 machine code to source in 3270's

extricating terminal interfaces whether in binary, object-oriented abstracted languages is a feature in UNIX paradigms

sgt 4/8/2025||
Very cool
leoc 4/8/2025||
Here's another, recently-started YT channel focussed on mainframes: ErnieTech's Little Mainframes https://www.youtube.com/channel/UCdi4FOLU9-kSiiE7tVuVyjg .
mikerg87 4/8/2025||
His homepage is also a wealth of information: https://sites.google.com/view/ernietech/home
flkenosad 4/8/2025|
We need to bring back spiral cables.
jeffbee 4/8/2025||
As soon as we drop the line rates back down to 1200, sure. Actually there are a lot of spiral cables readily available on the market because clicky keyboard guys resurrected the category but they only support the lowest and most ancient USB protocols.
fancyfredbot 4/8/2025||
This looks like a spiral cable which supports USB4 40Gbps:

https://www.amazon.co.uk/AWADUO-Charging-Extension-Compatibl...

jeffbee 4/8/2025|||
You can make up anything on Amazon and neither Intel nor the USB-IF has the resources to go after fly-by-night six-random-letter companies selling this stuff.
fancyfredbot 4/9/2025||
I agree with you the cable I linked to is likely lying about capabilities. I looked at reputable brands, and while they do make spiral cables, none of them certify those cables for more than 480Mbps. Exactly as you were saying previously.
ASalazarMX 4/8/2025|||
I kind of want those, but remember how hard it is to untangle the loops, and I'm already over it.