Re: How to read from keyboard?

2008-02-27 Thread MK
Okay i have the exact answer for you now. The following script will give you decimal and hexidecimal values for each keypress. The hex value can be used in normal regex and print statements using \x; the example in the script quits using capital Q and (from my keyboard) PgUp (this probabl

Re: How to read from keyboard?

2008-02-27 Thread Tom Phoenix
On Wed, Feb 27, 2008 at 10:28 AM, obdulio santana <[EMAIL PROTECTED]> wrote: > I want to read the following keys [home][End][Pageup][Page down] I think you're trying to capture an escape sequence, which is a series of characters sent for certain keystrokes. I'm appending below an example program

Re: How to read from keyboard?

2008-02-27 Thread obdulio santana
2008/2/27, MK <[EMAIL PROTECTED]>: > > 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 al

Re: How to read from keyboard?

2008-02-27 Thread MK
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 t

Re: How to read from keyboard?

2008-02-27 Thread Chas. Owens
On Wed, Feb 27, 2008 at 9:04 AM, obdulio santana <[EMAIL PROTECTED]> 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. > Take a look at Term::GetKey. * http://search.cpan.org/~barryp/L

How to read from keyboard?

2008-02-27 Thread obdulio santana
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.