home *** CD-ROM | disk | FTP | other *** search
- Program testfnt;
- Var
- key : char;
- str80 : string[80];
-
- Begin
- writeln('Use functions keys. F1 = RAM char. F2 = ROM char. F10 = Quit');
- repeat
- read(kbd,key);
- if keypressed then
- begin
- read(kbd,key);
- case key of
- ';' : begin {F1 = use ram}
- write(Lst,chr(27),chr(37),chr(1),chr(0)); {switch printer to RAM}
- writeln('Enter text: ');
- readln(str80);
- writeln(Lst,str80);
- end;
- '<' : begin {F2 = use rom}
- write(Lst,chr(27),chr(37),chr(0),chr(0));
- writeln('Enter text: ');
- readln(str80);
- writeln(Lst,str80);
- end;
- end; {case}
- end;
- writeln('Press a function key');
- until key = 'D';
- end.