Thread Tools Search this Thread
Top Forums Programming conio.h
# 1  
Old 07-29-2002

I am aware that there is this header file named conio.h that works with functions like getche() . This header is not included in my linux OS (Redhat 7.0). Is there an equivalent header that does the same thing with the gcc library of headers, or is there a place to obtain a copy of the library file?

Please and thanks.
Appreciate your help.

# 2  
Old 07-30-2002
I'm sure the answer is yes, but your question would be easier to answer specifically if you could say what it is that you are trying to do. What does getche() do? Read a character with echo?

Anyway, unless you are doing something exotic, sticking with the ANSI C functions is the best bet.
Marc Rochkind
# 3  
Old 07-30-2002
There is no same header file under Linux, but you sure do have a similar library called the 'curses' library. You do have the getch() function in it as well. If you have installed it on your machin, you can use it. See help on curses, man curses
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question