www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/02/14:10:34

Date: Tue, 2 Jun 1998 19:14:36 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: KINO <405455 AT ingtz DOT unizar DOT es>
cc: djgpp AT delorie DOT com
Subject: Re: Gotoxy() Malfunction
In-Reply-To: <3.0.1.32.19980602143749.00796100@ingtz.unizar.es>
Message-ID: <Pine.SUN.3.91.980602191245.20326P-100000@is>
MIME-Version: 1.0

On Tue, 2 Jun 1998, KINO wrote:

> -The cursor's position isn't as I wrote or
> -The cursor's position is O.K. but the printf() function I wrote doesn't
> appear. After quiting the program I press Alt+F5 and what a surprise that
> all sentences wroten (write) appear at the bottom of the screen.

You are using gotoxy together with printf.  This is a bad idea, since 
direct console I/O and stdio functions don't mix well.  Use cprintf 
instead.  The DJGPP FAQ list (available as v2/faq210b.zip from the same 
place you get DJGPP) discusses this in more detail in section 9.4.

- Raw text -


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