Run an IBM 3270 emulator in XDarwin

Apr 01, '02 11:48:15PM

Contributed by: varase

Need a TN3270 emulator, but are tired of waiting for a native app (or waiting for Classic to launch) while an impatient operator/user sits on the line? I use XDarwin (rootless), OroborOSX, and x3270. Read the rest of the article for the how-to...

After you've installed XDarwin and your window manager, get the x3270 sources.

Extract them and make the following changes:

% diff x3270-3.1.1-orig/Imakefile x3270-3.1.1/Imakefile

% diff x3270-3.1.1-orig/popups.c x3270-3.1.1/popups.c
< #if !defined(__FreeBSD__)
> #if !defined(__FreeBSD__) && !defined(__DARWIN__)

% diff x3270-3.1.1-orig/util.c x3270-3.1.1/util.c
< #if !defined(__FreeBSD__)
> #if !defined(__FreeBSD__) && !defined(__DARWIN__)
Follow the build instructions (as detailed in the build docs) and make install it. I use the ibmhosts at /usr/X11R6/lib/X11/x3270/ibm_hosts. Set up .x3270pro in your home directory; I use [at least in part]:
! model
x3270.model: 3279-4-E
! name to transmit
x3270.termName: IBM-3278-4-E
for 43 lines and you're good to go.

Disclaimer: I don't know what if any prerequisite packages are required - this is just what worked for me. You can mail me, but don't expect very in depth answers - I'm an old mainframe jock, dabbing a toe in unix for the first time.

[Editor's note: Completely untested locally, as I have no need for a 3270 emulator...]

Comments (2)

Mac OS X Hints