Trick wget into printing nice progress bars without tty
Created by: AdamSimpson
wget uses ioctl to check the screen size:
ioctl(0, TIOCGWINSZ, &screen_size);
When it returns 0, as is the case for our subprocess, a newline is printed after each progress bar image is printed to the screen which isn't desirable. Try LD_PRELOAD ioctl which provides a fake screen to see if it can trick wget.