Message-Id: <200008061838.OAA02716@delorie.com> Date: Sun, 06 Aug 2000 21:41:14 +0200 To: dawitbro AT alpha DOT delta DOT edu X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" CC: djgpp AT delorie DOT com In-reply-to: (dawitbro AT alpha DOT delta DOT edu) Subject: Re: Conflict between IOSTREAMs and VGA writes References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Sun, 6 Aug 2000 13:17:18 -0400 (EDT) > From: "David Witbrodt" > > In the first demo I wrote for these students, I used kbhit(). They said, > "What the h@#l is that?" So I wanted to try IOSTREAMs. Bad idea.... Not necessarily a bad idea, it's just that the way to get a no-echo input is tricky. You *can* do it with iostreams, but you need to call a termios function to switch the console into no-echo mode. See the node "Termios Functions" in the library reference manual, for more about this. Using termios is better than conio, because termios functions are supported on Unix and GNU/Linux systems.