kbhit() doesn't call select() if input is not a tty
(select returns 1 on /dev/null). Changed more uses of 0 constant to STDIN_FILENO (defined unistd.h). Changed C++ comments to C-style.
Please register or sign in to comment
(select returns 1 on /dev/null). Changed more uses of 0 constant to STDIN_FILENO (defined unistd.h). Changed C++ comments to C-style.