replayce get_cmd_char with ruby1.9 STDIN.getch