Date: Sun, 27 Aug 2000 09:31:35 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Radical NetSurfer , djgpp AT delorie DOT com Subject: Re: printf, cprintf and CR/LF problem 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, 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.