Possible Duplicate:
How to implement getch() function of C in Linux?
What is the equivalent Linux version of the conio.h header file from MS-DOS?
Is there a way to replace its functionality? e.g. getch()
I’m using
gccand the text editorGeanyto compileCcode.
conio.his a C header file used with old MS-DOS compilers to create text user interfaces. Compilers that target other operating systems, such as Linux-based, 32-bit Windows and OS/2, provide equivalent functionality through other header files and libraries.The
#include <curses.h>will give you almost all of the functionality provided byconio.h."ncurses" needs to be installed in the first place.
If you use the Apt package manager:
If you use
rpm:For
getch, take a look at the "NCURSES Programming HOWTO" article.