Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > cursesライブラリ > Curses::Windowクラス > getch
getch -> Integer
ウィンドウへの入力から 1 バイト読みこみます。