Programing (1) 썸네일형 리스트형 kbhit() for Linux 마찬가지로,, kbhit을 대체할수 있는 방법을 찾다가;; 아직 해보지는 않았는데;;; 궁금하시면 #include stdio.h> #include termios.h> #include unistd.h> #include sys/types.h> #include sys/time.h> /* This id to hide the character we type and suspend any prints after dir 1 , displayed ony when dir 0 */ void changemode ( int dir ) { static struct termios oldt, newt; if ( dir == 1 ) { tcgetattr ( STDIN_FILENO, &oldt ); newt = oldt; newt.c_.. 이전 1 다음