This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: newbie question
- To: "Craig Cowen" <craig at allmaui dot com>,<help-gcc at gnu dot org>
- Subject: RE: newbie question
- From: "Puneet Singhal" <puneet at opussoft dot com>
- Date: Thu, 11 Jan 2001 13:05:22 +0530
try using getch instead of getche
use the foll command for compiling
cc [ flag ... ] file ... -lcurses [ library ... ]
and in the code incl the foll
#include <curses.h>
int getch(void);
:) -----Original Message-----
:) From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
:) Behalf Of Craig Cowen
:) Sent: Thursday, January 11, 2001 12:59 PM
:) To: help-gcc@gnu.org
:) Subject: newbie question
:)
:)
:) I am going over a beginners book on ANSI C and it references a header
:) file conio.h and a function getche().
:) The function is suppose to get one character and force a return.
:) How can I use this with gcc or how can I get the same functionality.
:)
:) uname -a
:) FreeBSD athlon 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #14: Fri Nov 24
:) 19:36:27 GMT
:)
:) cc -v
:) sing builtin specs.
:) gcc version 2.95.2 19991024 (release)
:)
:) Thanks
:)