On 23 Mar 2003 at 9:32, ktb wrote:
On Sun, Mar 23, 2003 at 04:14:58AM -1000, [EMAIL PROTECTED] wrote:
Hi Everyone -
I remember using the DOS keyboard software interrupt in the old, old days to get the scancode, shift/alt/
ctrl state, the ascii code, etc. from a keystroke.
I need this information for a cross-os application
I am trying to write.
[...]
How do I get them in Linux running under X? I've
looked and looked in CPAN and nothing rings
a bell...
Aloha => Beau;
If you just want the scan-code - $ man -k key
dumpkeys xmodmap
hth, kent
Thanks kent, but what I want to do is wait (or poll, or get a key event) on the keyboard and when a key
is pressed (I guess actually on 'key up') obtain
the scancode and control key state at that time.
I am now looking through the X man pages - but I
still can't find any ready-to-go perl module...
Seems like this sort of thing would have to be handled by one of the widget sets, possibly looking at the source for the GTK or TK modules might help, or they might point you in the direction of where to look in the associated C source they wrap, and that might lead you to what to look for in Perl.
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]