delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/08/10:12:52

Date: Thu, 8 May 1997 17:09:59 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ben N Shadwick <bshadwick AT juno DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: putc and '0x0A'
In-Reply-To: <19970508.064438.3462.1.bshadwick@juno.com>
Message-ID: <Pine.SUN.3.91.970508170728.21083C@is>
MIME-Version: 1.0

On Thu, 8 May 1997, Ben N Shadwick wrote:

> So is there a way to output to the screen characters and such without it
> waiting for a \n to display the whole line and without using the conio.h

You need to make the stream that writes to the screen (normally, stdout) 
unbuffered.  Check out the `setvbuf' library function; it is ANSI, and 
thus portable.

Alternatively, you can call `fflush' when you need to actually deliver 
the output to the screen.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019