Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lost good subfunction, "getch" in stdio.h

Status
Not open for further replies.

shawnpd

MIS
Jul 24, 1999
1
0
0
US
I worked in C++ a year ago, and made frequent use of a "getch" function. This function was, I believe, defined in the iomanip or stdio (most likely latter) header files. It took a single charactor or keystroke from the input buffer WITHOUT WAITING FOR A RETURN. I found it indespensable to producing simple interfaces and single keystroke menus. Now that I am teaching myself again, does anyone know where this command is and the rough syntax? Any alternative direct methods of connection to input would be welcomed. Unfortunately all the sources I find are obsessed with object orientation so much they leave interface totally out.
 
In Solaris 2.5.1,<br>
<br>
getch() is in curses.h .<br>
<br>
You might want to check the specific type of UNIX you are<br>
using just to make sure it's in the same place.<br>
<br>
Hope this helps!<br>
<br>
-Mart311
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top