Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ANSI color codes should check for tty first #30
When using ANSI color codes, the correct thing to do is check if the output device is a tty? because stdout is often redirected to a file. For example:
logger = Logger.new(STDOUT) logger.use_ansi = STDOUT.tty?
When I enable command logging through Paperclip, syslog fills up with this: