"stty: standard input: Inappropriate ioctl for device" when running program
I am getting the message "stty: standard input: Inappropriate ioctl for device" when running a program. Does this mean that the program is not running from an interactive console ? The program is periodically attempting to read from standard input on one of its threads via kbhit() and getch().
|
The standard input isn't a terminal. You can check this, if you know the PID:
Code:
ls -l /proc/pid/fd/0 |
Quote:
|
Why would you use them if it weren't a terminal?
You can use 'isatty(0)' in your program to determine if stdin is a terminal or not. |
All times are GMT -5. The time now is 08:12 AM. |