home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
BN_108.ZIP
/
ANSI.PAS
next >
Wrap
Pascal/Delphi Source File
|
1994-09-10
|
1KB
|
91 lines
USES Crt;
VAR
M : Text;
X, Y, I : INTEGER;
Ch : CHAR;
PROCEDURE TC (Fg, Bg : BYTE);
BEGIN
TextColor (Fg);
TextBackGround (Bg);
END; { TC }
BEGIN { Main Block }
TC (15,0);
ClrScr;
GotoXY (23,1);
Write ('F');
TC (12,0);
GotoXY (24,1);
Write ('A');
TC (10,0);
GotoXY (25,1);
Write ('N');
GotoXY (26,1);
TC (9,0);
Write ('S');
GotoXY (27,1);
TC (11,0);
Write ('I');
GotoXY (29,1);
TC (15,0);
Write ('News v1.φφα - 1994 εXτRεMε Software');
TC (1,0);
GotoXY (1,2);
For I := 1 to 80 DO
Write ('─');
GotoXY (1,15);
For I := 1 to 80 DO
Write ('─');
X := 1;
Y := 4;
GotoXY (X,Y);
TC (7,0);
Assign (M, 'News.Ans');
Rewrite (M);
REPEAT
Ch := READKEY;
GotoXY (X,Y);
Write (Ch);
Write (M,Ch);
IF (Ch = #8)
THEN
BEGIN
X := X - 1;
IF (X < 1)
THEN
BEGIN
X := 79;
Y := Y - 1;
GotoXY (X,Y);
END;
IF (Y < 4)
THEN
BEGIN
Y := 4;
X := 1;
END;
GotoXY (X,Y);
{ Write (#0);}
END
ELSE
X := X + 1;
IF (X > 79) OR (Ch = #13)
THEN
BEGIN
X := 1;
Y := Y + 1;
Write (M, #27,'[B');
END;
IF (Y > 14)
THEN
Begin
Close (M);
Halt (0);
END;
UNTIL (Ch = #27);
Close (M);
END.