www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/27/02:34:04

Date: Sun, 27 Aug 2000 09:31:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Radical NetSurfer <radsmail AT juno DOT com>, djgpp AT delorie DOT com
Subject: Re: printf, cprintf and CR/LF problem
In-Reply-To: <Pine.SUN.3.91.1000827084655.3086C-100000@is>
Message-ID: <Pine.SUN.3.91.1000827092400.3086F-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 Sun, 27 Aug 2000, I wrote:

> You could remove the \n from the format, and print it at the beginning of 
> the next line instead.

Sorry, it's possible that I didn't understand the problem correctly (a 
code fragment would have helped).

Are you saying that outputting a full 80-column line to the last screen
linhe position scrolls the entire display even if there's no \n in the
text you output?

If so, then this is because both printf and cprintf (and also cputs and 
cputc) always move the cursor past the last written character.  On the 
last line, moving the cursor will scroll the display.

You need to write the characters in a way that doesn't involve moving the 
cursor, like with ScreenUpdateLine or dosmemput.

- Raw text -


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