home *** CD-ROM | disk | FTP | other *** search
- PROGRAM GetASCII_DEMO;
-
- USES CRT,IOSTUFF,POPASCII;
- VAR
- Ch : Char;
- {======================================================================}
- BEGIN
- SetColor(LightGray,Blue); { Set colors }
- ClrScr;
- SetChooseASCII(32,4); { set location of ASCII box at 32,4 }
- Repeat
- WriteSt('Move box with arrow keys then hit Enter.',1,25);Clreol;
-
- Ch := ChooseASCII; { pop up and select }
- If Ch = #0 then exit; { user hit escape in ChooseASCII }
- FillScr(Ch); { fill screen with selected character }
-
- GoToXY(1,25);ClrEol;
- WriteSt('Do it again ?',1,25);Clreol;
- Ch := ReadKey;
- Until Ch in ['n','N']; { Quit when user hits N }
- END.