home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!mcsun!news.funet.fi!cs.joensuu.fi!jlavi
- From: jlavi@cs.joensuu.fi (Jarkko Lavinen)
- Subject: Is there a way to avoid buffering while spooling to COM ?
- Message-ID: <1992Sep7.105059.27360@cs.joensuu.fi>
- Organization: University of Joensuu
- Date: Mon, 7 Sep 1992 10:50:59 GMT
- Lines: 18
-
- I have a DOS plotter utility which I use to plot graphs. Plotter is
- hooked on COM2 and under dos i simply use MODE LPT1:=COM2 and
- drive output to stdprn (in C). Under OS/2 i use SPOOL /D:LPT1
- /O:COM2 but spooling is buffered.
-
- My program calibrates itself to the grid on paper via few test points.
- The program gives command to plot a point, and I check visually the
- deviation from nearest grid lines. Unfortunately the command is
- jammed in buffer. I have to send either zillion commands to get buffer
- flushed or break the program which causes EOF. While plotting curves
- some command at the end are lost and plotter times out. All these
- make the program quite useless.
-
- Is there an easy way to avoid the buffering? Otherwise I have to
- start driving things directly to COM port or port the program to
- OS/2.
-
- Jarkko Lavinen
-