Project

puts_color

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
The productive gem to put colorful string in Linux
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
               _                      _
 _ __   _   _ | |_  ___    ___  ___  | |  ___   _ __
| '_ \ | | | || __|/ __|  / __|/ _ \ | | / _ \ | '__|
| |_) || |_| || |_ \__ \ | (__| (_) || || (_) || |
| .__/  \__,_| \__||___/  \___|\___/ |_| \___/ |_|
|_|                                                 

Introduction

This gem provides convenient ways like puts_red sth to print string in different colors. It's pretty useful for debuging or highlighting content in log. Attention, it relies on ANSI/VT100 Escape Sequence so make sure you use Linux terminal to see the "dazzling" color.

Usage

  1. Install

    gem install puts_color
    gem "puts_color", "~> 1.0.0"`

  2. Require

    require "puts_color"
    include PutsColor

  3. Call

    puts_red any_string
    puts_green any_string
    puts_yellow any_string
    puts_blue any_string
    puts_purple any_string
    puts_cyan any_string
    puts_grey any_string

Screenshot

puts_color