[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [seul-edu] [Fwd: C Compiler]



On Fri, 27 Jul 2001, Doug Loss wrote:

What he wants is not a compiler, it's a library.
If he wants to compile old DOS programs on Un*x with no change, the UConio
library claims to provide same API Borland's conio.h provided in the
1980s:

http://crazylovetrain.hypermart.net/projects.htm
[warning: the site has annoying popups]

If you want to do it 'right', either use the curses/ncurses library for
text console-intensive programs ('man curses' or 'man ncurses' should get
you introduced to it) or set buffering options to none on stdin (with
setvbuf(stdin,0,_IONBF,0) ) and read from it (possibly with help of the
select() call). With buffering set to none, you don't need to wait for the
line break to get the chars and can emulate getche with a getc/putc pair.

> > From: Mark Milford <mark.milford@ntlworld.com>
> > To: seul-edu@seul.org
> > Subject: C Compiler
> >
> > Hi,
> >
> > Do you know where i can get a free C Compiler for linux which supports
> > the getche() function?


.........................................................................
Felipe Paulo Guazzi Bergo - Free Software Developer (bergo@seul.org)
Personal Info and GPG Public Key: http://www.advogato.org/person/khazad
Campinas - SP - Brazil - Earth

* We are the invisible hand. (esr)