Noirox / el-3270

Electron-based 3270 Emulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EL-3270

EL-3270 is an IBM 3270 terminal emulator for the modern age. Why on earth is one needed, almost 50 years after the devices were first introduced in 1971? Of course, there is no need at all, I just did this for fun, as a voyage through computer archaeology. I don't expect anyone will ever use it as an actual emulator but I hope it showcases some programming techniques of current interest and illustrates how these historically important devices worked.

EL-3270 is substantially complete, only missing support for the PT order. It is in minor flux until then.

Technology Stack

I wanted -- and certainly failed -- to present a wrapper interface and underlying code structure that tries to appear be as fresh and as elegant as the 3270's themselves did to earlier generations of programmers. I have relied heavily on one of the best tech stacks currently available:

In addition, I factored out some interesting code for use in other projects of mine:

  • el-lib a common library for my Electron projects.
  • tn3270 a pure TypeScript implementation of the Telnet 3270 handshake for Node.js.

The MVS 3.8j Tur(n)key 4- System

Finally, I need to call out Jürgen Winkelmann's labor of love, the project that got me interested in EL-3270 from the start. TK4 simulates a full implementation of MVS running on an IBM 370/165, a top-of-the-line configuration in the 70s. The 370/165 sported a gigantic 16MB of memory -- you read that right, 16MB not 16GB -- yet it barely registers on top on my MacBook Pro.

I highly recommend the moshix YouTube channel for many in-depth discussions on mainframe archaeology.

A couple of interesting factoids I learned from moshix -- aside from his encyclopedic and invaluable knowledge of the important bits -- are:

  • IBM used the term 'storage' instead of 'memory' because the sales people were concerned that if computers had 'memory' they might also be thought to 'forget.'
  • MVS 3.8 is alone among the IBM operating system products to be open source, because it was developed specially for the US Government and thus funded by taxpayer dollars.

References

After all these years, the original 3270 documentation is out of print. Some second-hand manuals are available through Amazon but at exorbitant prices.

In the end, there was one resource I counted heavily on. It is hard to read but dead-on accurate. Hats off to the original writers who did an amazing job.

Finally, these two documents are great introductions, but you can't count on them to tell the whole story.

How to Run in Development Mode

First, unless you have access to a host that supports 3270 connections, you should run TK4. All the screenshots here are taken using TK4. On my development system:

cd /mvs38
./mvs

One time only, you'll need to grab the code.

git clone https://github.com/mflorence99/el-3270.git
cd el-3270
npm install

Next, start the dev server for the Angular client. This way, hot reload of the client is supported.

npm run serve

Finally, in another session, start the Electron app itself.

npm run test

How to Run in Production Mode (Linux)

NOTE: this currently only works for Ubuntu / Debian.

I need to host the installation files.

One time only, you'll need to grab the code.

git clone https://github.com/mflorence99/el-3270.git
cd el-3270
npm install

Then package and install the app.

npm run package
npm run deb64
npm run deb64-install

How to Run in Production Mode (Windows and Mac)

Although there are currently no installation files except for Linux, you can still start EL-3270 in production mode.

npm run live

UI Tour

Self-explanatory meta functions are triggered by the icons on the top row: connect, disconnect, show extended keyboard (more below), configuration and help.

As you change the size of the window, the 3270 font scales to best fit the available space.

Initial Configuration

Configuration

Sample Screen

Sample

Extended Keyboard

For 3270 functionality not available on modern keyboards.

I made no attempt to differentiate between ENTER and RETURN, which the real 3270 does. It is just too natural now for them to mean the same thing.

Keyboard

Debugging Information

Because the whole purpose of EL-3270 is to further the understanding of the old devices, the V8 console contains copious debugging information, much of which is dedicated to dumping and decoding the 3270 data stream.

Debug

Debug

About

Electron-based 3270 Emulator


Languages

Language:TypeScript 83.2%Language:HTML 11.5%Language:CSS 5.2%