Date: Sun, 5 May 1996 16:27:13 +0200 (IST) From: Eli Zaretskii To: "Rafael R. Sevilla" Cc: DJGPP Mail Server Subject: Re: Screen updates with \b In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 5 May 1996, Rafael R. Sevilla wrote: > things like status displays on a single line, I repeatedly printed the > backspace character (ASCII 8, or "\b") to standard output until I get back > to the start of the output line and then printed the update. This works > properly with Turbo C under DOS and GCC 2.7.2 under Solaris 5.3, but not > under djgpp. What djgpp does is wait until the _last_ such update before > printing anything! Why? An example of this usage follows: `printf' writes to stdout, and stdout is line-buffered. That means single characters aren't written. If you want an immediate update, call `fflush(stdout)' after each `printf'. Or switch stdout to be unbuffered by calling `setvbuf' before you start printing. (This is explained in the FAQ btw.)