Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Adds ansi colors to the String class
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.markdown
Rakefile
VERSION
ansi_colors.gemspec

README.markdown

Ansi Colors

This gem adds methods to colorize string using ansi escape codes. The gem works by adding methods to the standard String class. Added methods all starts with the prefix 'ansi_' and continue with the name of one of the names defined in the ANSI_CMD hash in ansi_colors.rb.

Example:

require 'ansi_colors'

puts "red coloured string".ansi_red 
puts "white and bold string".ansi_white.ansi_bold
Something went wrong with that request. Please try again.