6 def show_message(*msgs)
8 width = message.length + 6
9 win = Window.new(5, width,
10 (lines - 5) / 2, (cols - width) / 2)
12 win.attron(color_pair(COLOR_RED)){
24 init_pair(COLOR_BLUE,COLOR_BLUE,COLOR_WHITE)
25 init_pair(COLOR_RED,COLOR_RED,COLOR_WHITE)
31 mousemask(BUTTON1_CLICKED|BUTTON2_CLICKED|BUTTON3_CLICKED|BUTTON4_CLICKED)
32 setpos((lines - 5) / 2, (cols - 10) / 2)
33 attron(color_pair(COLOR_BLUE)|A_BOLD){
43 show_message("getch = #{c.inspect}, ",
44 "mouse event = #{'0x%x' % m.bstate}, ",
45 "axis = (#{m.x},#{m.y},#{m.z})")