delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/06/14:38:17

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" <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
In-reply-to: <Pine.OSF.4.10.10008061316040.20961-100000@alpha.delta.edu>
(dawitbro AT alpha DOT delta DOT edu)
Subject: Re: Conflict between IOSTREAMs and VGA writes
References: <Pine DOT OSF DOT 4 DOT 10 DOT 10008061316040 DOT 20961-100000 AT alpha DOT delta DOT edu>
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

> Date: Sun, 6 Aug 2000 13:17:18 -0400 (EDT)
> From: "David Witbrodt" <dawitbro AT alpha DOT delta DOT edu>
> 
>   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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019