Date: Mon, 27 Nov 2000 08:45:23 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Graham Reeds cc: djgpp AT delorie DOT com Subject: Re: Buffering text...(additional). In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 26 Nov 2000, Graham Reeds wrote: > > Use cprintf instead of printf (and "\r\n" instead of "\n"). printf > > doesn't pay attention to what textcolor does. > > I've also noticed a large performance hit when using printf("\r\n"); instead > of printf("\n"); I said to use "\r\n" with cprintf, not with printf. Using "\r\n" with printf is a waste of CPU cycles when printing to the screen and a Really Bad Idea when stdout is redirected to a file.