TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAMIE KOWINSKY
from: DANIEL GELINAS
date: 1997-11-17 06:54:00
subject: keyboard input.. under unix?

 -=> Quoting Jamie Kowinsky to All <=-
 JK> Can anyone direct me to a method or perhaps post some sample code of
 JK> how I would achive somthing like character by character keyboard input
 JK> under unix?
 JK> What I'm looking for is basically a function that will wait for a
 JK> keypress and return the char pressed.  Another function would be one
 JK> to check to see if any characters are waitng in the "keybaord buffer"
 JK> if such a thing exists under unix.  Then perhaps a hybrid function
 JK> that will return as soon as its called with a char if one was waiting
 JK> or a nul if one was not.
 JK> thanks for any help you may be able to give.
        I will return with your answer soon, i need to find my book !!!
        Daniel Gelinas
         [Team  OS/2]
        Telnet BBS : bbs.ShawiniganQc.ml.org
        Site Web   : www.ShawiniganQc.ml.org
        E-Mail     : daniel.gelinas@tr.cgocable.ca
... Documentation - The worst part of programming.
--- Blue Wave/OS2 v2.30
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)

SOURCE: echomail via exec-pc

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