i m looking to get input on character basis without enter. so is there any function which can help me taking input directly from the keyboard as and whn any key get pressed.
: i m looking to get input on character basis without enter. so is there any function which can help me taking input directly from the keyboard as and whn any key get pressed. :
: i m looking to get input on character basis without enter. so is there any function which can help me taking input directly from the keyboard as and whn any key get pressed. :
[b]Its very simple dude. Use getchar() function available in stdio.h lib.[/b] ------------------------------------------------- Ask questions , send your answers, share your views, write anything about C programming @ http://cprogramming4u.blogspot.com/
: : i m looking to get input on character basis without enter. so is there any function which can help me taking input directly from the keyboard as and whn any key get pressed. : : : : : [b]Its very simple dude. Use getchar() function available in stdio.h lib.[/b] : ------------------------------------------------- : Ask questions , send your answers, share your views, write anything about C programming @ http://cprogramming4u.blogspot.com/ : :
Not so simple... getchar requires an enter to work under a normal linux terminal. (It's becouse it's buffered).
Comments
:
Yes, you'll need to modify the terminal though...
Try google.
:
I don't remember how found it, and I can't seem to find it now either, so I just recomend searching for whatever you can think of...
:
[b]Its very simple dude. Use getchar() function available in stdio.h lib.[/b]
-------------------------------------------------
Ask questions , send your answers, share your views, write anything about C programming @ http://cprogramming4u.blogspot.com/
: :
:
:
: [b]Its very simple dude. Use getchar() function available in stdio.h lib.[/b]
: -------------------------------------------------
: Ask questions , send your answers, share your views, write anything about C programming @ http://cprogramming4u.blogspot.com/
:
:
Not so simple...
getchar requires an enter to work under a normal linux terminal. (It's becouse it's buffered).
As I said, one needs to modify the terminal.