Hi!

10-Май-2004 13:24 [EMAIL PROTECTED] (Eric Auer) wrote to
[EMAIL PROTECTED]:

EA> things: /r needs a progress info like "printf("Scanning sector %lu of
EA> %lu\r"...)"

     Bug report for OW:

______________O\_/_________________________________\_/O______________
- when stdout directed to a console device, then it should it unbuffered
  (unlike stdin, which may be line buffered if it a console device): with
  buffering, redrawing current line with "\r" doesn't (properly) works.
_____________________________________________________________________
              O/~\                                 /~\O

Solution (place somewhere at start of main()):

______________O\_/_________________________________\_/O______________
#ifdef __WATCOMC__
   /* Unlike BC, which unbuffers stdout if it is a device, OpenWatcom 1.2
      line buffers stdout; this prevents "rotator" trick based on output
      of "\r" and writing new line over previous. To make rotator work
      we unbuffer stdout manually:
   */
   setbuf (stdout, NULL);
#endif
_____________________________________________________________________
              O/~\                                 /~\O




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Freedos-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to