delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/09/09:57:13

From: markwr AT d564s1 DOT dot DOT state DOT mn DOT us (Mark Wright)
Subject: Putch bug?
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Wed, 9 Mar 94 7:59:57 CST

Hello all,

I've recently been trying to convert some old Borland programs to
DJGPP, but I'm having a problem with the putch() in the djgpp version of conio.
Seems it is reversing the coordinates - if I do a:
	gotoxy( 5, 7 );
	putch( 'A' );
it will place the 'A' at 7 across and 5 down.  puts() works fine, so I'm just
doing:
	char	uglyGnuPutchHackStrnig[] = " ";
	..
	gotoxy( 5, 7 );
	uglyGnuPutchHackString[0] = 'A';
	puts( uglyGnuPutchHackString );
It's ugly, but it works for now.  I'd just like to alert people to this
problem, and see if maybe I have an old version.  The dates on the relevant
header files are:
	conio.h		8-28-1993
	gppconio.h	8-28-1993

thanks,
Mark Wright
markwr AT d564s1 DOT dot DOT state DOT mn DOT us

- Raw text -


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