delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/15/14:01:24

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199607120458.AA204957501@relay1.geis.com>
Date: Fri, 12 Jul 96 04:17:00 UTC 0000
To: ac387 AT yfn DOT ysu DOT edu
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: gotoxy

Reply to message 4096212    from AC387 AT YFN DOT YSU on 07/11/96  2:39AM


>      gotoxy(1,1);
>      printf("%d %d",x,y);

conio functions like gotoxy() and stdio functions like printf() are not
compatible under DJGPP because stdout is LINE-buffered.  Output
is not flushed to the screen until either the buffer becomes full or a
newline is reached.  Under Borland and MS, this is not the case.

To guarantee that your programs using conio functions will work
correctly, you should use the conio output functions like cprintf(),
cputs(), etc.  There is a conio function that corresponds to almost
every standard io function.  Look up conio functions in the libc
docs for more info.  Also look in the *new* FAQ, v2.01, for answers
to exactly your question.

John

- Raw text -


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