tbm@anuck.UUCP (t.b.merrick) (02/22/88)
I am striving to learn SmalltalkV and have discovered that it needs an (unspecified) Epson printer. Since I have an Okidata 92 I'm having no success in doing a screen dump. It seems the Epson uses a control code followed by a byte quantity. Oki uses a control code to turn it on (03) and another to turn it off (03,02). Seems the off code must be avoided in what ever is sent to it. I'm not sure how newlines are sent, probably just sent as ordinary <cr><lf> outside the control-start, control-end characters. I called Digitalk and their best answer was that perhaps some kind clever user would contribute a solution to their newsletter. Any voluteers? Tom Merrick ATT BTL Andover, MA
elt@entire.UUCP (Edward T. Taychert) (02/23/88)
Smalltalk V prints with three form methods. One, #printerMode: is a class method to initialize the printer to graphics mode. Two more, #outputToPrinter and #outputToPrinterUpright do the i/o. You have to modify these for your printer. I've done this for a HP LaserJet using 75 dots to the inch which makes a form the size of a screen print about the size of a page... but not very well. Both of my methods print the same way because I was too lazy to rotate the image (pixels are square anyway) and it doesn't work well with color. If you are interested in the laserjet methods, send mail to me directly and I will send them to you. -- ____________________________________________________________________________ Ed Taychert Phone: USA (716) 381-7870 Entire Inc. UUCP: rochester!rocksanne!entire!elt 435 E. Commercial Street East Rochester, N.Y. 14445 A Xerox Company _____________________________________________________________________________
edusoft@ecf.toronto.edu (Educational Software) (02/24/88)
In article <475@anuck.UUCP> tbm@anuck.UUCP (t.b.merrick) writes: >Since I have an Okidata 92 I'm having no success in doing a screen >dump. It seems the Epson uses a control code followed by a byte >quantity. Oki uses a control code to turn it on (03) and another to >turn it off (03,02). Seems the off code must be avoided in what ever is >sent to it. I'm not sure how newlines are sent, probably just sent >as ordinary <cr><lf> outside the control-start, control-end characters. > >Any voluteers? Sure! I'll volunteer!!! Take a look at the class "Form" in particular the method "outputToPrinter" for screen dumps and "outputToPrinterUpright" for normal prints. In these methods are several lines that set character constants into strings. The changes for your Oki go there. I'm sorry that this is so vague, but I've been awake for a very long time If you need more information, or help give me a call (416)922-0087 or send mail (it would be easier and quicker on the phone) Rick...