Do you know where your variables are? | |
PerlMonks |
Re^3: PgUp Homeby zentara (Archbishop) |
on Mar 02, 2008 at 14:51 UTC ( [id://671500]=note: print w/replies, xml ) | Need Help?? |
As far as commanline goes, GLib will readkeys too. See Readkey with timer using Glib. So you can get the keycodes with Glib in a commandlinr app, the only thing you need to do is find out where in the Gtk2 headers, they translate the keycodes to keyboard names like F2, etc. It's probably in a header file somewhere. In any event, it's alot easier to use an event-loop system, like Glib, Curses, POE, etc., than to use a while(1) loop.
I'm not really a human, but I play one on earth. Cogito ergo sum a bum
In Section
Code Catacombs
|
|