From: Nobuyoshi Nakada on
Roger Pack wrote:
> NB if you *do* want arrow keys you'll want to wrap _getch or _getkbhit,
> like rb-readline does. See also [1]..
>
> -r
>
> [1] http://betterlogic.com/roger/?p=2930

What does it return when arrow keys are hit?

--
Nobu Nakada
--
Posted via http://www.ruby-forum.com/.

From: Roger Pack on
>> NB if you *do* want arrow keys you'll want to wrap _getch or _getkbhit,
>> like rb-readline does. See also [1]..
> What does it return when arrow keys are hit?

224 + (some number like 75 for left arrow). It appears to not track when
the shift key is hit and things like that, though. Not sure if those
are accessible...
--
Posted via http://www.ruby-forum.com/.