www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/14/11:01:41

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Thu, 14 Feb 2002 17:59:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Malloc/free DJGPP code
In-Reply-To: <3C6BB27C.9BBA44A7@yahoo.com>
Message-ID: <Pine.SUN.3.91.1020214175634.1382J-100000@is>
MIME-Version: 1.0
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

On Thu, 14 Feb 2002, CBFalconer wrote:

> cprintf avoids the blowups, but seems to pay no attention to
> '\n'.  The output has line feeds, without <cr>.

That's normal behavior: the \n -> CR-LF conversion only happens for file 
I/O.  With direct screen I/O, you need to put the \r there explicitly.

> Using it also brings in a long startup delay.

It shouldn't, but perhaps leave this alone for now (debugging more than 
one problem at once is not a good idea ;-).

> I changed the output strings to terminate in \r\n, and now I get
> bright patches of blue on the screen, with no output!

Does your program call some conio functions to set the screen colors?  If 
not, you should have see the normal white on black output from cprintf.

Can you show the fragment which calls cprintf?

- Raw text -


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