Re: How to read from keyboard?



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?
.



Relevant Pages

  • Re: How to read from keyboard?
    ... includes the entire extended keyboard) in a perl statement? ... if ($char eq "0x0057") ... please if someone has the tested version that read these keys I 'll ...
    (perl.beginners)
  • injection_projection code
    ... because of hex encoding. ... a row in the template. ... Sanitize string to protect against email header injection. ... void injection_protection(char *s) ...
    (freebsd-isp)
  • Help with sscanf()
    ... read a hex value for a MAC address given in the form of a string. ... Ultimately, I have to take the NICs MAC address (a 6 byte value, given ... of type char. ... seen that most folks use sscanf() to accomplish this. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: String to byte[] -- I cant get there from here?
    ... I need to convert these to a byte array of hex values. ... Each char contains two bytes. ... high nibble of each byte. ... Repeat for each char in the String. ...
    (comp.lang.java.programmer)
  • Re: How do i convert unsigned char to Hex Value
    ... I want to use the convertion in a different ... Using MSMQ i will send this hex value to MSMQ private queue. ... > Otherside the receiving application should convert the hex to char*. ... Frank Hickman ...
    (microsoft.public.vc.language)