home *** CD-ROM | disk | FTP | other *** search
- PROGRAM SETRESET; { sets caps and num lock on + printer to emphasized }
- { pitch then resets all of them to off + emphasized }
- { off, and allows test of keyboard and printer. }
- { I close Labcoat with an attempt to reset your }
- { printer and keyboard. If you have troubles with }
- { this, look for these orders in Labcoat, Evaluate, }
- { etc. source, comment them out and recompile. This }
- { program is just to show them all as examples. }
-
-
-
- VAR Y,Z : STRING[45];
-
- BEGIN
-
- MEM[$40:$17] := MEM[$40:$17] OR $40; { Caps Lock On }
- MEM[$40:$17] := MEM[$40:$17] OR $20; { Num Lock On }
-
- WRITE('INPUT A STRING (up to 45 char.): ');
- READLN(Y);
- WRITELN(LST, (CHR(27)), (CHR(69)),y); { Printer - Emphasized Pitch On }
-
- MEM[$40:$17] := MEM[$40:$17] AND $40; { Caps Lock Off }
- MEM[$40:$17] := MEM[$40:$17] AND $20; { Num Lock Off }
-
- WRITE('Now Try It Again: ');
- READLN(Z);
- writeln(lst, (chr(27)), (chr(70)),z); { Printer - Emphasized Pitch Off }
-
- END.