Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: PgUp Home

by halfcountplus (Hermit)
on Mar 01, 2008 at 23:32 UTC ( [id://671436]=note: print w/replies, xml ) Need Help??


in reply to Re: PgUp Home
in thread PgUp Home

Myself, i have no perl/Gtk2 installed, but i agree with your approach. Who really needs numeric keypad functionality or something on the console when Tk or Gtk will do this nicer and easier in X?

Still, there can always be something learned from trying. But if the gods have ears may this save someone else a silly amount of time & everyone can move on.

Or maybe a better Term::Readkey might come to exist.

Replies are listed 'Best First'.
Re^3: PgUp Home
by zentara (Archbishop) on Mar 02, 2008 at 14:51 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://671436]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-20 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found