printer.pas 923 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. Printer unit for BP7 compatible RTL
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit printer;
  14. interface
  15. var
  16. lst : text;
  17. implementation
  18. var
  19. old_exit : pointer;
  20. procedure printer_exit;
  21. begin
  22. close(lst);
  23. exitproc:=old_exit;
  24. end;
  25. begin
  26. assign(lst,'PRN');
  27. rewrite(lst);
  28. old_exit:=exitproc;
  29. exitproc:=@printer_exit;
  30. end.
  31. {
  32. $Log$
  33. Revision 1.2 2002-09-07 16:01:25 peter
  34. * old logs removed and tabs fixed
  35. }