Friday, September 4, 2009

Using ruby to output ansi colors in terminal


# Install ansi color gem
sudo gem install term-ansicolor

# Usage example
puts "#{user.name.red} #{user.email.blue.bold}"

No comments:

Blog Archive