Xref: utzoo comp.sys.ibm.pc.misc:5091 alt.msdos.programmer:2326 comp.os.msdos.programmer:2587 Path: utzoo!utgpu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!nosc!crash!nusdecs!nusjecs!ozonebbs!steven From: steven@ozonebbs.UUCP (Steven Rubin) Newsgroups: comp.sys.ibm.pc.misc,alt.msdos.programmer,comp.os.msdos.programmer Subject: Re: Writing my own print spooler Message-ID: Date: 29 Dec 90 02:03:05 GMT References: Organization: The ()zone BBS, +1 408 223 1738 Lines: 38 chas@tira.uchicago.edu (Charles Blair) writes: > > I've written my own int 5h handler. What I want to do is to make it > act like a print spooler, so that I can let the application it is a > part of get on with other work while stuff is printing -- this is a > problem when I drive the printer in graphics mode. > > What's a good way to approach this problem? I've thought of installing > the int 5h handler as a device driver, but I still don't really > understand how to accomplish the spooling. What's the trick? Does the > driver grab some kind of interrupt and keep looking at a buffer from > which it prints, returning if the buffer has no data? Is this the > trick? (In that case, I could simply grab some interrupt in my > application, and accomplish the same thing.) > > Thanks. I prefer e-mail, and I'll summarize, if there is interest. > > -- > Bitnet: pmrcjdb@uchimvs1 > Internet: cjdb@midway.uchicago.edu I don't know if this is the "correct" way to do a spooler, but The way I do it would be something like this 1) Capture int 1Ch. 2) Every clock tick, print x amount of characters from the file 3) return control to the other program. I suppose there is some other stuff to keep in mind when doing something like this, But basicly it is a very simple procedure. --- Steven Rubin @ @ {netcom, crash!nusdecs}!nusjecs!ozonebbs!steven oo Disclaimer: I don't even speak for myself! \__________/