Date: Mon, 7 Dec 1998 17:12:19 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Phillip Rhodes cc: djgpp AT delorie DOT com Subject: Re: C++ Question (slightly off topic) In-Reply-To: <366B9CB8.2351B88E@nccoast.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 7 Dec 1998, Phillip Rhodes wrote: > in other words, I want to do something that creates the effect of > getch(), reading a keystroke, without having to wait for > ENTER to be pressed. You need to switch stdin to binary mode. Sorry, I don't know how to do that exactly in C++. Keep in mind that binary I/O from stdin, at least in DJGPP, has several side effects that you should consider. For example, ^Z no more signals EOF, ^C doesn't interrupt the program, etc. For a full description of these and other issues, and how to work around them, check out the description of the library function `setmode' in libc.inf library reference.