how to read key from keyboard without return

J

Johan

Hi,

I want to read a key from the keyboard without pressing the return key. I
try the select call but it only returns when you press enter. How do you
read a key from the keyboard without pressing the return key. I am using
Redhat Linux 9.0

Johan
 
M

Martin Dickopp

Johan said:
I want to read a key from the keyboard without pressing the return key. I
try the select call but it only returns when you press enter. How do you
read a key from the keyboard without pressing the return key. I am using
Redhat Linux 9.0

See the comp.lang.c FAQ, Q19.1.

Martin
 
C

CBFalconer

Johan said:
I want to read a key from the keyboard without pressing the
return key. I try the select call but it only returns when you
press enter. How do you read a key from the keyboard without
pressing the return key. I am using Redhat Linux 9.0

By reading the faq (2nd reference below).

--
Some useful references:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html>
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/> (C99)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top