Category : Printer Utilities
Archive   : DOCPRINT.ZIP
Filename : THINGS.PAS
Output of file : THINGS.PAS contained in archive : DOCPRINT.ZIP
{ Utility Unit Joseph Lloyd 4/20/90 }
INTERFACE
USES Crt;
TYPE TypeScreenString = String[80];
FUNCTION StringOf ( ASCIIValue,
Times : Byte ) : TypeScreenString;
PROCEDURE WriteXY ( X,
Y : Integer;
Line : String);
PROCEDURE WritelnXY ( X,
Y : Integer;
Line : String);
PROCEDURE Music ( Times,
Top,
Bottom : Integer);
PROCEDURE Beep ( Note : Integer );
IMPLEMENTATION
(***************************************************************************)
FUNCTION StringOf ( ASCIIValue,
Times : Byte ) : TypeScreenString;
VAR Counter : Byte;
TempString : TypeScreenString;
BEGIN
TempString := '';
FOR Counter := 1 TO Times DO
TempString := TempString + Chr(ASCIIValue);
StringOf := TempString;
END;
PROCEDURE WriteXY ( X,
Y : Integer;
Line : String);
BEGIN
GotoXY ( X, Y );
Write ( Output, Line);
END;
PROCEDURE WritelnXY ( X,
Y : Integer;
Line : String);
BEGIN
GotoXY ( X, Y );
Writeln ( Output, Line);
END;
PROCEDURE Music ( Times,
Top,
Bottom : Integer);
VAR Tone,
Amount : Integer;
BEGIN
FOR Amount := 1 TO Times DO
BEGIN
FOR Tone := Top DOWNTO Bottom DO
Sound ( Tone );
FOR Tone := Top TO Bottom DO
Sound ( Tone );
Nosound;
END;
END;
PROCEDURE Beep ( Note : Integer );
BEGIN
Sound ( Note );
Delay ( 75 );
NoSound;
END;
BEGIN
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/