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