This takes away the buffering in the Linux terminals so that you don't have to press the Enter key afterwards. You have to include the header file TERMIO.H. And after you run this code you can use the getchar() function and it works just like getch() does in Windows/DOS programs.
спасибо за код (там правда кое-что надо подправить и структурку глобально объявить - а так работает). Еще один вопрос: как выключить эхо при нажатии этого getchar?