TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: All
from: Neil Heller
date: 2003-05-24 11:23:00
subject: Keyboard questions

I've got a question about getting keyboard input.

What I want to do is display a constantly-changing image on the screen 
while constantly checking for keyboard input.

One method that comes to mind is to simultaneously launch two 
asynchronous threads:  one for getting keyboard input and the other for 
displaying on the screen.  Will the thread waiting for keyboard input 
issue a system blocking call thereby halting the changing screen 
display?

I'll be working in ANSI-standard *nix so I can't use any of the neato 
DOS tricks like checking the keyboard buffer.

Another question I have about *nix keyboard-input routines deals with 
the enter key.  I know that DOS has getch() and getche() which get 
single character keyboard input without the user having to press ENTER.  
Unfortunately, these are specific to Intel machines (most of which use 
DOS related OSes).  Does the *nix world have something similar or does 
the user _always_ need to press ENTER after typing keyboard input?

þ CMPQwk 1.42 999

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

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™.