CalComp & Lahey Graphics Interface Emulations

Updated July 2018

Winteracter includes software which emulates various CalComp compatible graphics interfaces, allowing legacy graphics code to be ported to Microsoft Windows or X Windows. The emulation software is supplied in both pre-compiled and source code form. WiDE includes options which allow projects to link the pre-compiled versions automatically. Alternatively, the supplied source code allows the emulation to be modified to meet individual developer's requirements. The three emulated interfaces are:

CalComp HCBS (Host Computer Basic Software)

Many Fortran programs written during the 1970's and 1980's used the HCBS interface which was designed for use with CalComp plotters and was subsequently reimplemented for various other device types. Our 'CalComp' interface emulates all 10 of the HCBS routines as defined in "Programming CalComp Electromechanical Plotters" (copyright California Computer Products Inc. 1977). The emulated HCBS routines are :

AXIS FACTOR LINE NEWPEN NUMBER
PLOT PLOTS SCALE SYMBOL WHERE

Lahey Video Graphics Library

The popular Lahey F77L and F77L-EM/32 DOS Fortran 77 compilers included a partial HCBS emulation library which also added various basic PC-related extensions. This library was briefly shipped with Lahey LF90 1.xx before being replaced by the Lahey INTERACTER Starter Kit (LISK) and later the Winteracter Starter Kit (WiSK). Our 'CalComp' interface provides a full emulation of the Lahey Video Graphics Library (LVGL) as defined by Lahey in the "Lahey F77L-EM/32 FORTRAN Programmer's Reference manual Revision C January 1992" (copyright Lahey Computer Systems 1992). The emulated LVGL routines are :

CIRCLE FACTOR FILL GETPIX GRINFO GTEXT ISKEY
IXKEY NEWPEN PLOT PLOTS SETPIX WHERE

Graphoria

Graphoria was an add-on product sold by Lahey, which provided a superset of the facilities provided by the Lahey Video Graphics Library. Graphoria completed the HCBS emulation and added a large number of 'CalComp-like' extensions. It also added hardcopy to the LVGL, which was a screen-only library. Lahey discontinued Graphoria in 1995.

Emulations of the majority of the most commonly used Graphoria routines are included with Winteracter, allowing many Graphoria based programs to be rebuilt. The emulated Graphoria routines conform to the specification defined by Lahey in the "Graphoria Library Reference Manual Revision C May 1991" (copyright Lahey Computer Systems 1991). The emulated Graphoria routines are :

AROHD ARROW AXIS AXISB AXISC BAR CIRCL
CIRCLE CNTRL CURVX CURVY DASHL DASHP DIMEN
DVRINS DVRRMV FACTOR FILL FLINE FPNLEN GETPIX
GRID GRINFO GTEXT HATCH IGETPX ILINE ISETPX
ISKEY IXKEY KBCLR KBSTAT LABEL LINE MLIMIT
MRESET MSETXY MSHOW NEWPEN NUMBER PIX2XY PLOT
PLOTS POLY RECT SCALE SETPIX SYMBOL SYMLEN
TXTRES TXTSAV WHERE XY2PIX

Demos

A small number of demonstration programs are supplied to illustrate how legacy code written to one of the above interfaces can be resurrected with the supplied emuations. All of the demos are derived from example programs, contemporary with the original interfaces.

The images below were generated using original example programs for the HCBS, Lahey Video Graphics and Graphoria interfaces:

For more information email: