[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] keystrokes
- Subject: [ale] keystrokes
- From: jwl at atlanta.cray.com (James W. Lynch)
- Date: Wed, 30 Oct 1996 07:40:03 -0500
--------- Received message begins Here ---------
>
> } Is there any shell command in bash that will allow me to grab keystrokes other
> } than read. I would like to do a read command but give a time limit of
> } 60 seconds. Ne1 know how. Or does ne1 have a C program that will take
> } the time length on the command line and return the input on STDOUT?
>
> This _should_ do it... however, getchar() seems to block until it gets a
> newline, both under SunOS and linux (why? anyone?).
'cause stdin is buffered. It's more efficient that way.
>
> -JwL
Oh no, another one!!!! 8^) <jwl at cray.com>
>
Jim.
------------------------------------------------------------------------
Jim Lynch, System Engineer, SGI/Cray Research, Inc. / ARS: K4GVO
Federal Business Systems, Phone: (770) 631-2254, Email: jwl at cray.com
Suite 270, 200 Westpark Drive, Peachtree City, GA 30269