Workaround for missing getch under linux.