Does the Glib mainloop have the ability to capture keypresses?

I have plenty of examples for Gtk2 windows, and capturing
keyboard events, but I hav'nt found anything for Glib alone,
for use in commandline loops.

I can put 
Glib::IO->add_watch (fileno 'STDIN', [qw/in/], \&watch_callback); 

and watch what is input on STDIN, but is that the best way?


I'm not really a human, but I play one on earth.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]