printer.pp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993,97 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. History:
  14. 10.4.1994: Version 1.0
  15. Unit is completely implemented
  16. }
  17. unit printer;
  18. interface
  19. var
  20. lst : text;
  21. implementation
  22. var
  23. old_exit : pointer;
  24. procedure printer_exit;
  25. begin
  26. close(lst);
  27. exitproc:=old_exit;
  28. end;
  29. begin
  30. assign(lst,'PRN');
  31. rewrite(lst);
  32. old_exit:=exitproc;
  33. exitproc:=@printer_exit;
  34. end.
  35. {
  36. $Log$
  37. Revision 1.1 1998-03-25 11:18:41 root
  38. Initial revision
  39. Revision 1.3 1998/01/26 11:56:59 michael
  40. + Added log at the end
  41. Working file: rtl/dos/printer.pp
  42. description:
  43. ----------------------------
  44. revision 1.2
  45. date: 1997/12/01 12:15:48; author: michael; state: Exp; lines: +13 -6
  46. + added copyright reference in header.
  47. ----------------------------
  48. revision 1.1
  49. date: 1997/11/27 08:33:50; author: michael; state: Exp;
  50. Initial revision
  51. ----------------------------
  52. revision 1.1.1.1
  53. date: 1997/11/27 08:33:50; author: michael; state: Exp; lines: +0 -0
  54. FPC RTL CVS start
  55. =============================================================================
  56. }