Prev: [ANN] RubyInstaller: 1.8.7-p299, 1.9.1-p429 and 1.9.2-rc1 installersand packages released
Next: MiniTest test case execution
From: Nobuyoshi Nakada on 22 Jul 2010 23:36 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 22 Jul 2010 23:41
>> 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/. |