home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4781 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.1 KB  |  28 lines

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