home *** CD-ROM | disk | FTP | other *** search
- (* This program is hereby placed in the Public Domain.
- L/G Computer Consultants
- box 190
- Willingboro, NJ 08046 *)
-
-
- (* program to set Epson MX printer to various printing modes *)
-
-
- {$I Writeall.lib }
- {$I Readall.lib }
-
- var
- x,y : integer;
- ch : char;
-
- begin
- ClrScr;
- gotoxy(1,1);
- textcolor(White);
- Center('EpsonMX printer modes');
- TextColor(Cyan);
- gotoxy(1,4);
- Write('Please make your selection:');
- writeprompt(' [A] Compressed Printing',Cyan,10,8,true,true);
- writeprompt(' [B] Italics Print',Cyan,10,10,true,true);
- writeprompt(' [C] Double Strike',Cyan,10,12,true,true);
- writeprompt(' [D] Double Width',Cyan,40,8,true,true);
- writeprompt(' [E] Emphasized',Cyan,40,10,true,true);
- writeprompt(' [Q] Quit',Cyan,40,12,true,true);
- writeprompt(' [R] Reset Printer (required to clear existing modes)',Cyan,10,16,true,true);
- gotoxy(5,22);
- TextColor(Yellow);
- repeat
- ch:= UpCase(readch);
- case ch of
- #65 : begin
- write(lst,chr(15));
- write('Compressed ');
- end;
- #66 : begin
- write(lst,chr(27)+chr(52));
- write('Italics ');
- end;
- #67 : begin
- write(lst,chr(27)+chr(71));
- write('Double Strike ');
- end;
- #68 : begin
- write(lst,chr(27)+chr(87)+chr(1));
- write('Double Width ');
- end;
- #69 : begin
- write(lst,chr(27)+chr(69));
- write('Emphasized ');
- end;
- #82 : begin (*reset*)
- write(lst,chr(27)+chr(64));
- gotoxy(5,22);
- ClrEOL;
- end;
- #81 :
- end;
- until ch = 'Q';
- ClrScr;
- end.
-