Project

Glitz

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
ANSI-Colorized Glamour for Terminal Output
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

Glitz

ANSI-Colorized Glamour for Terminal Output

Colors and effects can be chained and added in any order. You can specify one foreground color and one background color (setting a new value will overwrite the previous one). Effects like bold and underline combine together.

Usage

require 'glitz'
include Glitz

puts "Roses are Red".foreground(:red)
puts "Editors are White on Black".foreground(:white).background(:black)
puts "If you eat " + "Chunky Bacon".bold.underline
puts "Beware the dreaded " + "Blink Attack!".foreground(:white).background(:magenta).blink

Supported Values

  • Colors: [:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white]
  • Effects: [:bold, :underline, :blink, :reverse, :concealed]

Creator

Mattt Thompson (@mattt)

License

Glitz is available under the MIT license. See the LICENSE file for more info.