home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
TURBOM2
/
TELE.LBR
/
GRAPHIC.MZD
/
GRAPHIC.MOD
Wrap
Text File
|
2000-06-30
|
2KB
|
70 lines
MODULE Graphic;
(* test of some graphics functions for the Televideo 955 terminal *)
(* glenn brooke 6/17/87 *)
FROM Terminal IMPORT Highlight, Normal, ClearScreen, GotoXY;
FROM Tele IMPORT BoxScreen,GraphicModeOn,GraphicModeOff, HalfIntensity,
FullIntensity, LockKeyboard, UnlockKeyboard,Columns,
EraseToEndOfPage,LightBackground,Darkbackground,
CursorAttrib, WriteReversed, Underline, ReverseUnderline,
Invisible;
VAR s : ARRAY [1..50] OF CHAR;
c : CHAR;
i : CARDINAL;
shine, thick : BOOLEAN;
PROCEDURE Continue;
BEGIN
WRITE("Press return to continue...");
READ(c)
END Continue;
BEGIN
ClearScreen;
Thick := TRUE; shine := FALSE;
BoxScreen(Thick,shine);
GotoXY(15,15); Continue;
ClearScreen;
Thick := FALSE; shine := TRUE;
BoxScreen(Thick,shine);
Gotoxy(15,15); Continue;
ClearScreen;
FOR i := 1 TO 23 DO WRITE("******************************************") END;
GotoXY(3,2); WRITE("I will now erase rest of the screen <<press return>>");
READ(c);
EraseToEndOfPage;
Gotoxy(4,5); Continue;
WRITELN;
WriteReversed(" This should appear reversed ");
WRITELN;
Underline;
WRITE(" And this should be underlined ");
ReverseUnderline;
WRITE(" This should be in reverse and underlined ");
Gotoxy(25,20);Continue;
ClearScreen;
GraphicModeOn;
WRITELN("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
GraphicModeOff;
WRITELN("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
GotoXY(12,15); WRITE(" Light background <<press return>> "); READ(c);
LightBackground;
GotoXY(12,15); WRITE(" Dark background <<press return>> "); READ(c);
DarkBackground;
Gotoxy(15,15); Continue;
HalfIntensity;
WriteReversed(" ");
WriteReversed(" ");
WriteReversed(" ");
WriteReversed(" ");
GotoXY(12,17); WriteReversed(" This is half intensity");
FullIntensity;
WriteReversed(" ");
WriteReversed(" ");
WriteReversed(" ");
WriteReversed(" ");
Gotoxy(12,22); WriteReversed(" This is full intensity");
END Graphic..