Does the Glib mainloop have the ability to capture keypresses?
- From: zentara <zentara1 sbcglobal net>
- To: gtk-perl-list gnome org
- Subject: Does the Glib mainloop have the ability to capture keypresses?
- Date: Wed, 14 Feb 2007 17:50:16 -0500
Hi,
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?
Thanks,
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]