fgd3@jc3b21.UUCP (Fabbian G. Dufoe) (04/05/88)
This is my second request for help on this subject. I'm trying to get access to the entire data stream being sent to the PRT: device. I need to translate some codes that aren't sent to DoSpecial. Can anybody help? Reply by email if possible. If you can't mail to me for some reason go ahead and post a reply. If you think this is such a simple question that I'll be getting answers from dozens of people answer it anyway. If it's a really hard question let me know I'm not alone. Thanks. --Fabbian Dufoe 350 Ling-A-Mor Terrace South St. Petersburg, Florida 33705 813-823-2350 UUCP: ...gatech!codas!usfvax2!jc3b21!fgd3
daveb@cbmvax.UUCP (Dave Berezowski) (04/07/88)
In article <362@jc3b21.UUCP> fgd3@jc3b21.UUCP (Fabbian G. Dufoe) writes: > > This is my second request for help on this subject. I'm trying to get >access to the entire data stream being sent to the PRT: device. I need to >translate some codes that aren't sent to DoSpecial. Can anybody help? > The only way to do this would be to use the SetFunction cmd on the printer devices BeginIO and examine the buffer. Carolyn Scheppner of CATS has written a program called 'Cmd' or 'PrtCmd' which I believe she has sent to Fred Fish (with source?) that does just this BUT it works with ANY device. ie. you can re-direct output from any device to any file/device. If you are trying to do the above BUT from within a printer driver then the above trick isn't what you want. Under V1.2 it is only possible with a MASSIVE kludge. What you have to do is patch the vector at PD->pd_Pwrite. This vector points to the printer device's write function. The function's two arguements are a ptr to the data and its length. After you examine/change the data you would then have to call the real write function (since your patched in). Under V1.3 it's very easy. There is an optional ConversionFunction which can look at all the characters going to the printer. Specs on the V1.3 stuff aren't generally available yet. If you want more detailed info, mail me and we'll take this discussion off line. Regards, D.B.