Mail Archives: djgpp/2000/10/08/12:24:03
| From: "David Grant" <dgrant79 AT hotmail DOT com>
| Date: Sun, 8 Oct 2000 02:20:01 -0700
| DJ-Gateway: from newsgroup comp.os.msdos.djgpp
|
| Can anyone tell me how to get a character from the screen (I mean keyboard)
| without requiring a carriage return? cin won't work, and neither will
| "&istream get(char c)" funtion. Thanks. Sorry I know this is not really
| related to DJGPP, but that's the compiler I'm using, and I like this
| newsgroup.
You could use the "getch ()" function in <conio.h>. Or, you could use
the ncurses library or alternatively use tcsetattr to change the
terminal settings (like Eli suggested).
--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/
- Raw text -