Don't format strings if STDOUT is not a TTY.