Re: How to read from keyboard?



2008/2/27, MK <halfcountplus@xxxxxxxxxxxxx>:

On 02/27/2008 09:04:50 AM, obdulio santana wrote:
-> Hi.

->
-> I want to read from keyboard some keys [pagedown],
-> [Home],[End][PageUp][up][left][down][right].
->
-> how can I do it?
->
-> Thanks in advance.

->
->

Term::Readkey also works but is poorly documented.

Does anyone know how to use the hex values from keysymdef.h (which
includes the entire extended keyboard) in a perl statement? So, eg.

if ($char eq "0x0057") {etc...}

Or where to get values for printf "\U" "\u" that will work?


I took a look of Term::Getkeys and Term::Readkey and tested some test code
but none helped me.

I want to read the following keys [home][End][Pageup][Page down]

please if someone has the tested version that read these keys I 'll
appreciate the solution .

Regards


Relevant Pages

  • Re: How to read from keyboard?
    ... Does anyone know how to use the hex values from keysymdef.h (which includes the entire extended keyboard) in a perl statement? ... if ($char eq "0x0057") ...
    (perl.beginners)
  • Re: why use CHAR.. _EVER_?
    ... stuff like keys? ... i just dont understand why 'aaron' matches to 'aaron ' ... uses CHAR instead of VarChar. ... it is always 5 characters and you want to preserve any leading 0's. ...
    (microsoft.public.sqlserver)
  • Re: why use CHAR.. _EVER_?
    ... when they only hold data that is 10 characters long. ... stuff like keys? ... using a query where field1 = 'aaron' it finds a match; ... SQL, by definition, ignores white-space at the end of CHAR data types. ...
    (microsoft.public.sqlserver)
  • RE: Determine if an input key is a number, letter or special character
    ... You aren't telling is what kind of input you are talking about, but the Char ... If you mean input keys as in KeyEvent... ... letter or special character. ... like D0-D9 + NumPad0-NumPad9 would mean digit input. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: sort problem
    ... AS> # Set $order{$char} to increasing values in the sequence we want ... AS> we can sort the keys in the required order. ... strings and the number of hash keys. ... generating syntax clean code with funny chars can be tricky. ...
    (comp.lang.perl.misc)