Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.
/ colorful.cr Public archive

**Unmaintained** Colors in your terminal writes with Crystal Language.

License

Notifications You must be signed in to change notification settings

icyleaf/colorful.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorful.cr

License Version Dependency Status devDependency Status Build Status

Unmaintained, please use Offical starndard library Colorize instead!

Colors in your terminal writes with Crystal Language, inspired from colored.

Build in crystal version >= v0.20.1 (2016-12-05), Docs Generated in latest commit.

Installation

Add this to your application's shard.yml:

dependencies:
  colorful:
    github: icyleaf/colorful.cr

Usage

require "colorful"

# color examples
puts "green".green
puts "on_blue".on_blue
puts "black_on_white".black_on_white # same as black.on_white
puts "yellow_with_bold".yellow_with_bold # same as yellow.bold
puts "on_magenta_with_italic".on_magenta_with_italic # same as on_magenta.italic
puts "red_on_cyan_with_italic".red_on_cyan_with_italic # same as red.on_cyan.italic

puts "bule_on_white_with_underline".colorful({ "background" => "blue", "foreground" => "white", "mode" => "underline" })

# dump colors & modes
puts Colorful.colors
puts Colorful.modes

Contributing

  1. Fork it ( https://github.com/icyleaf/colorful.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

**Unmaintained** Colors in your terminal writes with Crystal Language.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published