0.01
No commit activity in last 3 years
No release in over 3 years
Color and formatting in terminal
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

smart_colored

Color and formatting in terminal

Build Status

Synopsis

require 'smart_colored'

puts 'important'.colored.red
puts 'important'.colored.bold
puts 'important'.colored.red.bold
puts 'important'.colored.red_bold
puts 'important'.colored.red_bold_on_yellow

or

require 'smart_colored/extend'

puts 'important'.red
puts 'important'.bold
puts 'important'.red.bold
puts 'important'.red_bold
puts 'important'.red_bold_on_yellow

smart means you can apply format to string which already got formatting

require 'smart_colored/extend'

puts "sometimes there could be #{'very important'.bold.underline} text in simply important one".red
puts "white, #{'underlined red'.underline.red}, #{'inversed with background green'.inverse_green} and #{'bold blue'.bold_blue} on black background".white.on_black

Copyright

Copyright (c) 2010-2011 Ivan Kuchin. See LICENSE.txt for details.