Path: utzoo!mnetor!uunet!cbmvax!daveb From: daveb@cbmvax.UUCP (Dave Berezowski) Newsgroups: comp.sys.amiga Subject: Re: Need help with PRT: Message-ID: <3581@cbmvax.UUCP> Date: 6 Apr 88 20:05:02 GMT References: <362@jc3b21.UUCP> Reply-To: daveb@cbmvax.UUCP (Dave Berezowski) Organization: Commodore Technology, West Chester, PA Lines: 29 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.