source: trunk/Sibyl/RTL/PRINTER.PAS@ 201

Last change on this file since 201 was 8, checked in by RBRi, 19 years ago

+ rest of sibyl stuff

  • Property svn:eol-style set to native
File size: 376 bytes
Line 
1UNIT Printer;
2
3INTERFACE
4
5VAR Lst:TEXT;
6
7IMPLEMENTATION
8
9VAR PrinterExit:POINTER;
10
11PROCEDURE NewExit;
12BEGIN
13 ExitProc:=PrinterExit;
14 {$i-}
15 Close(Lst);
16 {$i+}
17END;
18
19BEGIN
20 PrinterExit:=ExitProc;
21 ExitProc:=@NewExit;
22 Assign(Lst,'LPT1');
23 {$i-}
24 reset(Lst);
25 If InOutRes<>0 then writeln('Can''t open printer-port: LPT1');
26 {$i+}
27END.
Note: See TracBrowser for help on using the repository browser.