home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13252 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!caen!malgudi.oar.net!uoft02.utoledo.edu!desire.wright.edu!jmatthews
  2. Newsgroups: comp.sys.mac.programmer
  3. Subject: RE:  Mac programming problem...
  4. Message-ID: <1992Jul31.002856.3160@desire.wright.edu>
  5. From: jmatthews@desire.wright.edu
  6. Date: 31 Jul 92 00:28:56 EST
  7. References: <1992Jul29.162801.21739@mprgate.mpr.ca>
  8. Organization: Wright State University 
  9. Lines: 23
  10.  
  11. In article <1992Jul29.162801.21739@mprgate.mpr.ca>, hass@mprgate.mpr.ca (Calvin Hass (CS Shad Valley Student)) writes:
  12. [re: talking to the printer directly]
  13. > Actually, I think one can do something like the following:
  14. > Open(f,".printer");
  15. > It has been quite some time since I've used it, but I seem to recall that it
  16. > will open a text channel to the printer.  From there, one only needs to use
  17. > Writeln(f,"Hello there"); commands.
  18.  
  19. var f: text; {text type file required}
  20. ...
  21. rewrite(f, 'printer:'); {'modem:' is the other port}
  22. writeln(f, 'Hello there');
  23. close (f);
  24.  
  25. This works on an ImageWriter. I can't wait to see what happens on
  26. a LaserWriter; maybe I can send PostScript:-)
  27.  
  28. o----------------------------------------------------------------------------o
  29. | John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
  30. | "I'm a commensal .sig virus, indistinguishable from an ordinary organelle."|
  31. o----------------------------------------------------------------------------o
  32.