Hi Beau,

Dont know much about linux, but over on BSD there is a /dev/console . I am
sure you can play with that, there are also open source key-loggers from
which you can probebly extract the info you are looking for. Let me know how
it go's.

Mark

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "ktb" <[EMAIL PROTECTED]>
Sent: Sunday, March 23, 2003 10:43 AM
Subject: Re: Getting keyboard scancode, etc.


> 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...
>
> Aloha => Beau;
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to