Fix ReadKey warning due to progress bar ioctl if the process has no controlling TTY