delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/15/12:12:36

Date: Thu, 11 Jul 1996 12:18:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: randall williams <ac387 AT yfn DOT ysu DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: gotoxy
In-Reply-To: <4s27ju$5jl@news.ysu.edu>
Message-Id: <Pine.SUN.3.91.960711120928.7062B-100000@is>
Mime-Version: 1.0

On 11 Jul 1996, randall williams wrote:

> I'm having the same problem. Below is a similar code fragment to what
> I was using. On my system it fills the screen and then scrolls.

You mix conio functions (gotoxy) with buffered I/O (printf).  This is 
usually a bad idea, as the DJGPP FAQ explains in section 9.4.  In your 
example program, use `cprintf' instead of `printf', and it will work as 
you expect.

The program that started this thread used `cout', which is the same as 
`printf' as it uses bufferd I/O at its lower levels.

- Raw text -


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