Nikita Kuznetsov wrote in post #964064:

> def keyPress()
> #help me here please :)))
> end

I've cut this from a sample that comes with ncurses.

  while((ch = win.getch()) != Ncurses::KEY_F1) do
  case(ch)
    when Ncurses::KEY_DOWN
      go_down()

    when Ncurses::KEY_UP
      go_up()

    when ...

    else
  end
    paint_screen()
  end

# win is a window

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