TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mark Kimes
from: Bill Patterson
date: 1995-10-05 18:20:46
subject: Re: C Set ++

* In a message originally to Mark Kimes, Bill Patterson writes:

 MK>  BP>>>> I need to detect a keypress
 MK> 
 MK>  MK>>> Look at kbhit() and getch(), or (better) go PM and
let the OS wake
 MK> you
 MK>  MK>>> up when a user input event occurs.
 MK> 
 MK>  BP>> kbhit() sounds interesting. I'll give that a try.
 MK> 
 MK>  MK> You'll need _both_ kbhit and getch.
 MK> 
 MK> Actually, that reply may be misleading.  Assuming you only want to
 MK> retrieve a keypress, getch() is all you need.  kbhit() alone would
 MK> be of dubious value as it simply tells you that a key was pressed,
 MK> not what it was.
 MK> 
 MK> --- XHEd-OS/2 1.22

Yea, I've gone ahead and gave up on C++ cin for now and went back to the
"C" way of doing things. getch() works exactly how I want. It'd
be nice if I could get cin to work that way some how.

Bill


--- LoraBBS-OS/2 v2.40+
MK> * Origin: The Pit (1:380/16)
* Origin: Planet X * Warp Co-Ordinates: 407-799-0975 (1:374/2528.0)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 374/2528 1 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.