fun with ncurses and ruby