home *** CD-ROM | disk | FTP | other *** search
- { These procedures have been created to mime Microsoft Basic
- commands. I hope they are obvious to you }
-
-
- procedure Cls;
- BEGIN
- write(chr(27),'E');
- END;
-
- procedure Color(f,b:integer);
- VAR
- fstr,bstr :char;
- BEGIN
- fstr := chr(f+48);
- bstr := chr(b+48);
- write(chr(27),'b',f);
- write(chr(27),'c',b);
- END;
-
- procedure Locate(x,y,c:integer);
- VAR
- xstr,ystr :char;
- BEGIN
- xstr := chr(x+32);
- ystr := chr(y+32);
- write(chr(27),'Y',xstr,ystr);
- { Turn cursor on (1) or off (0) }
- if c = 0 then write(chr(27),'f');
- if c = 1 then write(chr(27),'e');
- END;
-
- procedure clear;
- BEGIN
- Cls;
- END;
-