delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/06/06:51:46

Date: Mon, 6 Dec 1999 12:30:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jude Dashiell <jdashiel AT clark DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: gcc and ansi.sys question
In-Reply-To: <Pine.GSO.4.05.9912051432440.28045-100000@shell.clark.net>
Message-ID: <Pine.SUN.3.91.991206123033.19715L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 5 Dec 1999, Jude Dashiell wrote:

> row=2;
> col=30;
> gotoxy(row,col);
> printf("natal chart locator");
> row=4;
> col=3;
> gotoxy(row,col);
> printf("astrological");
> 
> My guess is that stdio.h and conio.h are fighting.

All you need to do is to follow each `printf' by "fflush(stdout);".
`printf' doesn't automatically flush its buffers unless the string it
produces ends with a newline.

> I'd like to do things
> in such a way as to avoid conflict, so does gcc have ansi screen control
> functions outside of conio.h that can replace gotoxy()?

ANSI screen control is only available if you install the ANSI.SYS
console driver on your machine.  DJGPP doesn't support the ANSI escape
sequences in its library (and neither does any other DOS compiler).

- Raw text -


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