How can I get scan code in using c

[b][red]This message was edited by pagezel at 2005-5-31 17:47:11[/red][/b][hr]
Hi all,

I have a problem in getting scan code in unix using c...
Please help...
Thank...

regards
Pagezel


Comments

  • : [b][red]This message was edited by pagezel at 2005-5-31 17:47:11[/red][/b][hr]
    : Hi all,
    :
    : I have a problem in getting scan code in unix using c...
    : Please help...
    : Thank...
    :
    : regards
    : Pagezel
    :

    hi there,
    a psudocode for getting scan code in linux is as follows.



    TRUE loop: begin
    char ch = getchar () # get a character from the keyboard.
    if ch == 0 # if ch==zero then proceed further .
    char sch = getchar () # get a character from a standard input
    print("%d", sch); # and mode and then print out it's Decimal value
    TRUE loop: ends.

    A winner is not the one who never fails , but the one who never quits.
    Sumit Shah.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion