public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Need advice on converting programs from Borland C compiler
@ 2004-06-11 14:18 David J. Stelte
  2004-06-11 14:43 ` Eljay Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: David J. Stelte @ 2004-06-11 14:18 UTC (permalink / raw)
  To: gcc-help

I have a few programs that were written for DOS and compiled under the 
Borland Turbo C compiler that I need to convert to run under the Linux 
like environment in Cygwin.  The code has a lot of cursor positioning 
function calls like gotoxy(), makes use of screen colors using a 
function called cprintf(), and has some functions for getting getting 
special characters from the keyboard like F1-F12.  Is there a library 
that comes with the native GCC that comes with Cygwin that has these or 
similar functions?  I can't seem to find it.  Advice...?

Dave Stelte
stelte@comcast.net



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Need advice on converting programs from Borland C compiler
  2004-06-11 14:18 Need advice on converting programs from Borland C compiler David J. Stelte
@ 2004-06-11 14:43 ` Eljay Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-06-11 14:43 UTC (permalink / raw)
  To: David J. Stelte, gcc-help

Hi Dave,

What you want is the library called "ncurses".

There are analogous functions between ncurses and Borland's console 
interface library.  But they are not identical in use and initialization.

You might be able to make your own shim layer (functions called "cprintf" 
and "gotoxy" and such) which map to ncurses functions.

If I remember correctly, ncurses either includes or has available a C++ 
wrapper to facilitate using ncurses.  You may want to refactor your code to 
use the C++ wrappers.

See: http://www.gnu.org/software/ncurses/ncurses.html

Good luck,
--Eljay

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-11 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11 14:18 Need advice on converting programs from Borland C compiler David J. Stelte
2004-06-11 14:43 ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).