On Sun, Mar 23, 2003 at 05:43:38AM -1000, [EMAIL PROTECTED] wrote:
> 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...
> 

xev sounds like what you need then.  It's in the xbase-clients package
on debian.
hth,
kent

-- 
To know the truth is to distort the Universe.
                      Alfred N. Whitehead (adaptation)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to