Hi,

When I use readline, I would like to run an action if a key combination
is pressed.

  Alt + cursor key left

  Alt + cursor key right

In other words, I want the cursor key to do something, but only when it
is pressed in combination.

If this is not possible in Readline, perhaps someone knows how else to
fetch user input, including ALL possible key combination?

But, the problem also is ... I do NOT want to press ENTER.

The user should just be able to press:

  alt + cursor_key_left

And this should trigger something.

Is that even possible at all?

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