home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
189.img
/
TCS120S.ZIP
/
VIEWANSI.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-03-20
|
2KB
|
60 lines
{$R-,S-,I-,D-,F+,V-,B-,N-,L+,O+ }
{$M 65500,0,0 }
unit viewansi;
interface
uses crt,dos,
gentypes,configrt,modem,statret,gensubs,subs1,windows,subs2,textret,
mailret,userret,flags,mainr1,ansiedit,lineedit,chatstuf,
mainr2,overret1;
procedure viewansiscreens;
implementation
procedure viewansiscreens;
var bobway:integer;
p:lstr;
asciiiii:boolean;
begin
if numwelcomes<1 then begin
writeln;
writeln (^S'There are no Ansi Screens currently available'^R);
writeln;
exit;
end else
repeat
asciiiii:=false;
p:='';
if ansi then write (direct,#27+'[2J') else write (direct,^L);
writeln (^P'-=[ '^S'Ansi Welcome Screens '^P']=-');
writeln;
writeln (^R'There are '^S,numwelcomes,^R' Ansi screens.'^M);
if exist (textfiledir+'Welcome.ASC') then asciiiii:=true;
if asciiiii then writeln ('There is '^S'1'^R' Ascii Screen.'^M);
p:='Enter Choice [#1-'+strr(numwelcomes)+']-';
if asciiiii then p:=p+'[A/Ascii]-';
p:=p+'[Q/Quit]:';
writestr (p);
bobway:=valu(input);
if upcase(input[1])='A' then begin
printfile (textfiledir+'WELCOME.ASC');
writestr ('Press [Return] to continue.*');
end;
if valu(input) in [1..numwelcomes] then begin
if ansi then begin
if bobway>numwelcomes then
writeln (^M'There are only '+strr(numwelcomes)+' screens!') else
printfile (textfiledir+'Welcome'+strr(bobway)+'.Ans');
movexy (1,urec.displaylen);
writestr ('Press [Return] to continue.*');
end;
end;
until upcase(input[1])='Q';
end;
begin
end.