Mail Archives: djgpp/1998/12/07/08:46:11
Message-ID: | <366B9CB8.2351B88E@nccoast.net>
|
Date: | Mon, 07 Dec 1998 04:15:36 -0500
|
From: | Phillip Rhodes <mindcrime AT nccoast DOT net>
|
Organization: | Wilmington Star News
|
X-Mailer: | Mozilla 4.5 [en] (Win95; I)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
CC: | Phillip Rhodes <mindcrime AT nccoast DOT net>
|
Subject: | C++ Question (slightly off topic)
|
NNTP-Posting-Host: | 208.244.12.42
|
X-Trace: | 7 Dec 1998 04:16:11 -0800, 208.244.12.42
|
Lines: | 37
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Guys,
I realize this is slightly off-topic.. I beg forgiveness.. but the
people on this group seem to be very knowledgeable, and I can't
find the answer to this question anywhere...
OK, here goes:
how in the heck can I do unbuffered input, in C++, using the standard
iostream library?
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.
From what I've been told by others, it can be done. But I'll be darned
if I can get it to work. I'm pretty sure you have to do
some trickery with the streambuf class, but I'm at my wits end.
and yes, some of you that are thinking this sounds familiar, I did post
this previously.. About 5 months ago.. I got a few hints,
but nothing definite, then I lost interest in what I was working on..
hehehe.
Again, I hope everyone will forgive me for the off topic question. I
wouldn't do this, except this group has always seemed to
tolerate this type of thing, as long as it was a sensible, intelligent
question, and not some kindof spam, and also because I can't
find the answer anywere else..
Yes, I've posted in comp.lang.c++ also. Nobody in that group would even
reply to me.
Thanks,
Phillip Rhodes
mindcrime AT nccoast DOT net
- Raw text -