only enable colors when output to a terminal (not to a file)