how to poll keyboard

Joel Spolsky spolsky at eniac.seas.upenn.edu
Thu Aug 4 06:53:22 AEST 1988


In article <5065 at husc6.harvard.edu> nakada at husc8.UUCP (Paul Nakada) writes:
>
>I am in need of a way to read a terminal keyboard without
>stopping if there is no keypress...  this is the scenario..
>
>is there any way to do this?  i have been unsuccessful in using
>rawmode and curses....   can someone please enlighten me??
>-paul

What you want is cbreak mode, not raw mode. Raw is overkill.

Joel Spolsky
Bell Communications Research
spolsky at eniac.seas.upenn.edu
or ...!rutgers!bellcore!pyuxss!spolsky



More information about the Comp.unix.questions mailing list