Optimized the redirected console output by buffering up to 80 characters
or until a newline