0.0
No commit activity in last 3 years
No release in over 3 years
Ultra-minimal library to simplify the use of colors in ruby scripts.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.2, >= 2.2.10
~> 12.3, >= 12.3.3
 Project Readme

ColoredScripts

WARNING: this gem is deprecated!

Ultra-minimal library to simplify the use of colors in ruby scripts.

Installation

Add this line to your application's Gemfile:

gem 'colored_scripts'

And then execute:

$ bundle

Or install it yourself as:

$ gem install colored_scripts

Usage

require "colored_scripts"
cs = ColoredScripts

puts cs.red("Hello world!")

puts cs.bold(cs.red("Bold red text here"))

puts cs.green_bg("green background")

All options:

  • bright / bold
  • faint
  • underline
  • blink
  • exchange
  • hide
  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • default
  • black_bg
  • red_bg
  • green_bg
  • yellow_bg
  • blue_bg
  • magenta_bg
  • cyan_bg
  • white_bg
  • default_b