|
|
| Vista 1.25 and GDDM Character Graphics |
Back |
History
Around 2004 Greg Price, who I've always said knows every detail about 3270 protocol (and a zillion other things too), mentioned he has a chess game and other programs that require 3270 terminal graphics, so he asked me about it in Vista. Personally, I've always considered this something just for fun, and I still do, since maybe 4 people have ever asked me about it and they were always just looking at it for fun. The real graphics work has long since moved from 3270 screens to desktop GUI applications such as Excel, Visio, etc.
Still, I wanted to have a bit of fun too, and with Greg's help I added code to Vista that would allow some minimal character graphics. I believe GDDM supports vector graphics too, but this additional code does not.
Character Graphics
When Vista displays a text character, such as the letter A, it historically used a raster font set (although V1.29 now supports True-Type characters). A raster font is simply a bunch of dots, like in this character editor I wrote for creating the Vista raster fonts:
So when you see a letter A on the screen at 9x16 font size, Vista goes out to the raster font set, grabs the bits, and displays them on the screen in the color specified.
Now imagine that instead of going out to a pre-coded font, you can send those bits to the terminal, building a 9x16 (in this example) cell in memory, with various colors. Then you tell the terminal to display that "character" you just created. Then you build another different cell and display it, then another, then another until you run out of available cell space (there are limits - I just forgot).
Let's say you create a cell that looks like this at font size 9x16, and a whole bunch of others based on the image you want to display:

Then you tell the terminal to display each of the new cells in the proper location, and you can come up with something like this - a bit pixely, but that's how character graphics work.
That yellow arrow (not part of the GDDM image) points to that one cell shown above. So that's how character graphics work. No lines, no arcs, no fonts other than if you want to try to create some or use GDDM functions, or switch back to terminal fonts like the 3 lines at the bottom. And check out that copyright. This test was done on a modern z/OS 3.1 release, but this code probably hasn't been touched for almost 30 years. Excel won :)
Running These Tests
In case you want to run these tests, I'll show you how I did it and you can see if the same works on your Windows PC. This was done on Windows 10.
Download and install Vista 1.25
This is the old unreleased-for-production version where I added the GDDM character code. The reason it never made it to production is because I started seeing some minor errors while running some SAS graphics tests that I could not resolve. Plus, with only a couple of people asking about it, there wasn't much reason to support this code. It was more for fun and nostalgia.
Speaking of nostalgia, I never had a 3279 at my desk that supported graphics, but I watched one guy who did. It seemed to take maybe 3 seconds to create a new display, and during that delay there were maybe 20 horizontal lines of pixels across the middle of the screen that randomly displayed some kind of noise. My guess was that was when the character graphics were being sent to the terminal, which took some time at the old SNA speeds. My theory was that this "lighting bolt" as I've heard it called, was accidental, but the programmers left it in because it looked kind of cool. Just a theory of course.
Ok, back from nostalgia: Download V1.25 from here:
https://www.tombrennansoftware.com/downloads/vista125_2004-12-08.exe
When you install this version, don't take the default target location. Instead, use something else such as c:\Vista125 as shown in this example:
This is important because Vista 1.25 was written for XP which allowed writing parameter files to the same directory as the executable. Windows 10 does not, so do not install in the Program Files (x86) directory. Choose another that you have full read/write access to.
Vista 1.25 will try to write the vista.ini file to c:\Windows when running, which is not allowed. Windows 10 still allows such old programs to work by rerouting that file to a "virtual" directory, in this case %appdata%\local\virtualstore\windows - if you ever need to find it.
Run Vista 1.25 and have your name/code ready
After install when you try to run V1.25 you'll probably get this message:
I'm not sure why, but V1.25 doesn't seem to be able to get itself licensed. So you'll need to click the Enter Code button and enter your Vista registration name and code.
After that is successful, Vista will open but the first thing it does is try to open a Help window using a method that isn't supported by Win 10. So we get to this web page instead:

You can just close that. The Help window was just a "Succesfully Registered" window anyway. But note that you can't get to any of the V1.25 Help.
FYI - Keep your registration name and code handy, because the registration process doesn't work at all. Every time you start up V1.25 you'll likely see the Sorry, trial is over message window. All this was fixed long ago, but we're running code from 2004 now and we're probably lucky this version runs at all.
Connect to a mainframe that has GDDM installed
So here I connected to a zD&T mainframe simulation under my desk, running z/OS 3.1 - the latest as of Jan 2025.

So I'll logon to TSO, and it turns out this zD&T setup includes all the GDDM libraries, such as:

Those are pretty easy to find - they all start with GDDM. But be aware yours may have different high-levels, such as SYS1.GDDM or similar, depending on your install methods.
Allocate and run a GDDM-REXX test sample
So let's run a sample GDDM screen. Pretty much the only one I know how to do is this. You can try copy/pasting these commands into TSO READY to see if you can do the same:
alloc f(admsymbl) da('gddm.sadmsym') shr
alloc f(admgdf) da('gddm.sadmgdf') shr
exec 'gddm.sadmsam(erxmodel)'
And there you go, a GDDM character graphics screen created by calling a Rexx sample, supplied by IBM

Vista 1.25 Issues
You really don't want to run V1.25 on modern Windows for anything more than a quick test. It has too many issues.
Graphics in V1.30 or whatever upcoming version
I keep saying that whenever I find time I'll try to copy the character graphics code from V1.25 to a modern Vista version, but I never seem to find time since it's just for fun. So sorry, no ETA at all for that.
|
|