getch() for Linux


getch() for Linux

구글 신이 있어서 다행이지,, 휴... 모방한번 모방? 모방인가- 한번하는거 힘드네;;; 출처는 http://cboard.cprogramming.com/faq-board/27714-faq-there-getch-conio-equivalent-linux-unix.html #include #include #include int mygetch( ) { struct termios oldt, newt; int ch; tcgetattr( STDIN_FILENO, &oldt ); newt = oldt; newt.c_lflag &= ~( ICANON | ECHO ); tcsetattr( STDIN_FILENO, TCSANOW, &newt ); ch = getchar(); tcsetattr( STDIN_FILENO, TC..


원문링크 : getch() for Linux