Category : Display Utilities
Archive   : HERC4390.ZIP
Filename : DEMO4390.PAS
{$I herc4390.inc}
Var I,j : integer;
Procedure Box(X1,Y1,X2,Y2:Integer);
BEGIN
HDraw(X1,Y1,X1,Y2);
HDrawTo(X2,Y2);
HDrawTo(X2,Y1);
HDrawTo(X1,Y1);
END {PROCEDURE Box(X1,Y1,X2,Y2:Integer) };
{--------------------}
Procedure ZigZagX(X,Y,I,J,N:integer);
Var k: byte;
BEGIN
hplot(x-i,y-j);
k := 0;
While k < N DO
BEGIN
hdrawto(x+k*i,y);
k := k+1;
hdrawto(x+k*i,y-j);
k := k + 1;
END;
END {PROCEDURE ZigZag(X,Y,I,J,N) };
{--------------------}
Procedure ZigZagY(X,Y,I,J,N:integer);
Var k: byte;
BEGIN
hplot(x,y);
k := 1;
While k < N DO
BEGIN
hdrawto(x-i,y+k*j);
k := k+1;
hdrawto(x,y+k*j);
k := k + 1;
END;
END {PROCEDURE ZigZag(X,Y,I,J,N) };
{--------------------}
BEGIN
HWorkPage(1);
HClrScr;
HViewPage(1);
Hgotoxy(11,16);
write(USR,'The Hercules 43 x 90 Text Mode is as easy to use as the 25 x 80 Text');HWLN;
write(USR,'':10,'Mode, using the standard Turbo Pascal WRITE procedure. Most of the');HWLN;
Write(USR,'':10,'standard Turbo screen features, and a few of the graphics features,');HWLn;
Write(USR,'':10,'are emulated.');HWLn;
HWLn;
Write(USR,'':30,'User Procedures supplied are:');HWLn;
HWLn;
Write(USR,'':10,'PROCEDURE HViewPage(Page : Byte); Sets the Page currently displayed.');HWLn;
Write(USR,'':10,'PROCEDURE HWorkPage(Page : Byte); Sets the working page.');HWLn;
Write(USR,'':10,'PROCEDURE HGoToXY(X,Y:Byte); Moves the cursor for the working page. ');HWLn;
Write(USR,'':10,'PROCEDURE HClrScr; Clear the Workpage.');HWLn;
Write(USR,'':10,'FUNCTION HWhereX & HWhereY:Byte; Return location of workpage cursor.');HWLn;
Write(USR,'':10,'PROCEDURE HPlot(x,y:INTEGER); Plots specified point. ');HWLn;
Write(USR,'':10,'PROCEDURE HDraw(x1,y1,x2,y2:integer); Draws specified line.');HWLn;
Write(USR,'':10,'PROCEDURE HDrawTo(x,y:INTEGER); Draws from end of the previous line.');HWLn;
i := 50; j := i*348 div 720;
Box(60,100,660,244);
Box(60-i,100-j,660+i,244+j);
ZigZagX(60,100,i,j,14);
ZigZagX(60,244,i,-j,14);
ZigZagY(60,100,i,j,6);
ZigZagY(660,100,-i,j,6);
HgotoXY(26,42);
Write(USR,'PRESS ANY KEY TO RESTORE NORMAL TEXT SCREEN');HW;
REPEAT UNTIL KeyPressed;
HViewPage(2);
END.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/