Re: stdin help



Alastair wrote:
sajjanharudit@xxxxxxxxx wrote:

.... snip ...

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

.... snip ...

One process would do all the waiting (fgetc(stdin) amd all that), the other process can periodically check on the results with a simple "if(is_there_message_waiting())" type decision.

.... snip ...

Interrupts is another method, but it all boils down to the same thing.

Please don't answer off-topic queries with off-topic material. Limit your reply to suggestions as to where to look. The reason is that the experts who can correct any errors you might make are not here to make those corrections, so bad advice may not be caught.


--
"If you want to post a followup via groups.google.com, don't use
 the broken "Reply" link at the bottom of the article.  Click on
 "show options" at the top of the article, then click on the
 "Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
.



Relevant Pages

  • Re: McGyver resource: The Circular File
    ... Rivet fins on, sand, prime and paint; ... Snip off the top and bottom of two cans and TIG them end - to - end. ... that's extremely good TIG practice. ...
    (rec.crafts.metalworking)
  • Re: McGyver resource: The Circular File
    ... Rivet fins on, sand, prime and paint; ... Snip off the top and grind the raw metal back to the seam. ... Snip off the top and bottom of two cans and TIG them end - to - end. ...
    (rec.crafts.metalworking)
  • Re: Anglo-Saxon Naming Traditions
    ... better approach may be look at relative proportions of names held by ... Certainly gathering only the very top and bottom seems ... A family might be thought to consist not only of those members ...
    (soc.history.medieval)
  • Re: Helicopters, firearms and bagpipes
    ... yer face--ain't even remotely scenic. ... Bottom line is that it was a great partay. ...
    (rec.motorcycles.harley)
  • Re: Anglo-Saxon Naming Traditions
    ... better approach may be look at relative proportions of names held by ... Certainly gathering only the very top and bottom seems ... A family might be thought to consist not only of those members ...
    (soc.history.medieval)