delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/15/11:49:42

Xref: news2.mv.net comp.os.msdos.djgpp:5848
From: ac387 AT yfn DOT ysu DOT edu (randall williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gotoxy
Date: 11 Jul 1996 06:39:58 GMT
Organization: St. Elizabeth Hospital, Youngstown, OH
Lines: 43
Message-ID: <4s27ju$5jl@news.ysu.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960709082517 DOT 1036B-100000 AT is>
Reply-To: ac387 AT yfn DOT ysu DOT edu (randall williams)
NNTP-Posting-Host: yfn.ysu.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In a previous article, eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) says:

>
>On Mon, 8 Jul 1996, Sxren Merser wrote:
>
>> Do anyone know why 'gotoxy(int x, int y)' dosn't work.
>> It just doesn't move the cursor correct? The coordinates is within
>> screen limits.
>> The program works just fine when compiled with Borland 5.0 (16-bit 
>> and Win32).
>
>Please post the source of the shortest program you can devise that 
>exhibits the problem.  `gotoxy' works for me just fine, but it might fail 
>in some specific situation.
>

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.
Compiled with another compiler it works fine. If this still works,
let me know and I'll send the actual program in email.



#include <conio.h>
#include <stdio.h>

int x,y;

main(){
  for(x=0;x<256;x++){
    for(y=0;y<256;y++){
      gotoxy(1,1);
      printf("%d %d",x,y);
     /* in my program I did some math here */
    }
  }
}


-- 
PGP key available
keyID=148DF819 fingerprint=1A 6F 0C 7F 79 1E 87 8F 86 C2 DF D4 3A CA 8A 3F

- Raw text -


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