stdin help
- From: "sajjanharudit@xxxxxxxxx" <sajjanharudit@xxxxxxxxx>
- Date: 4 Jan 2006 08:13:34 -0800
i need to check the stdin, repeatedly for an input form the keyboard,
with out prompting the user to press a key or without returning pressed
key on screen..
now the problem is that if i use getc() the program execution stpos at
this line and waits for the user to press a key. cant use getchar
because the key pressed appears on the screen and moreover it is
buffered.
what i need is a small technique whereby which I can check the stdin
for an input, without prompting the user(the user will enter a key as
and when he wishes, not depending on the program) AND without halting
the execution (as getc() does) AND without displaying the key on the
screen AND should store the pressed key to variable
.
- Follow-Ups:
- Re: stdin help
- From: Herbert Rosenau
- Re: stdin help
- From: tmp123
- Re: stdin help
- From: Robert Gamble
- Re: stdin help
- From: Alastair
- Re: stdin help
- From: Nick Keighley
- Re: stdin help
- Prev by Date: Re: State Machines and Coroutines
- Next by Date: Re: State Machines and Coroutines
- Previous by thread: function returning a string?
- Next by thread: Re: stdin help
- Index(es):
Relevant Pages
|