When redirecting the output to a file, the real-time throughput information
will be printed with escape sequences to clear the current line. This will
make it difficult to look at the results later and see if the throughput
changed during testing.
Print the escape sequence only if the terminal isn't a TTY, or if the $TERM
environment variable isn't set to "dumb".
When redirecting the output to a file, the real-time throughput information will be printed with escape sequences to clear the current line. This will make it difficult to look at the results later and see if the throughput changed during testing.
Print the escape sequence only if the terminal isn't a TTY, or if the $TERM environment variable isn't set to "dumb".
CC @harz566