Input event loop in a console application

Posted by Álvaro on Stack Overflow See other posts from Stack Overflow or by Álvaro
Published on 2010-03-12T22:55:00Z Indexed on 2010/03/12 22:57 UTC
Read the original article Hit count: 489

Filed under:
|
|
|

Hi,

I'm trying to make a little console application that is able to deal with keystrokes as events. What I need is mostly the ability to get the keystrokes and be able to do something with them without dealing with the typical stdin reading functions.

I tried to check the code of programs like mplayer, which implement this (for stopping the play, for example), but I can't get to the core of this with such a big code base.

Thanks

© Stack Overflow or respective owner

Related posts about c

    Related posts about console