module ChalkBox::Styles

Overview

ANSI escape codes for styling strings in the terminal

This module is based in chalk/ansi-styles

Usage

require "chalk-box"
include ChalkBox::Styles

puts "#{red}Red#{reset}"
puts "#{green.open}Green#{green.close}"

API

Each style has an open and close property (except reset)

Included Modules

Extended Modules

Defined in:

chalk_box/colors.cr
chalk_box/styles.cr

Instance Method Summary

Instance methods inherited from module ChalkBox::Styles::Private::Reset

close close, open open, reset reset

Instance Method Detail

def bgBlack #

def bgBlue #

def bgColor #

[View source]
def bgCyan #

def bgDarkGray #

def bgDarkGrey #

def bgGray #

def bgGreen #

def bgGrey #

def bgLightBlue #

def bgLightCyan #

def bgLightGray #

def bgLightGreen #

def bgLightGrey #

def bgLightMagenta #

def bgLightRed #

def bgLightYellow #

def bgMagenta #

def bgRed #

def bgWhite #

def bgYellow #

def black #

def blink #

def blue #

def bold #

def bright #

def color #

[View source]
def cyan #

def dark_gray #

def dark_grey #

def dim #

def gray #

def green #

def grey #

def hidden #

def light_blue #

def light_cyan #

def light_gray #

def light_green #

def light_grey #

def light_magenta #

def light_red #

def light_yellow #

def magenta #

def modifier #

[View source]
def red #

def reverse #

def underline #

def white #

def yellow #