module CrystalColors

Overview

The main Crystal Colors module

Defined in:

CrystalColors.cr

Constant Summary

BOLD = "\e[1m"
ENDC = "\e[0m"
FAIL = "\e[91m"
HEADER = "\e[95m"
OKBLUE = "\e[94m"
OKGREEN = "\e[92m"
UNDERLINE = "\e[4m"
VERSION = "0.1.0"
WARNING = "\e[93m"

Class Method Summary

Class Method Detail

def self.wrap(str : String, color : String) #

Returns the text inputed to the color inputed.

CrystalColors.wrap("I am Red.") #=> I am Red.

[View source]