printer.pp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.4 2000-02-09 16:59:29 peter
  34. * truncated log
  35. Revision 1.3 2000/01/07 16:41:32 daniel
  36. * copyright 2000
  37. Revision 1.2 2000/01/07 16:32:23 daniel
  38. * copyright 2000 added
  39. }