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
- ChalkBox::Styles::Private::Reset
Extended Modules
Defined in:
chalk_box/colors.crchalk_box/styles.cr
Instance Method Summary
- #bgBlack
- #bgBlue
- #bgColor
- #bgCyan
- #bgDarkGray
- #bgDarkGrey
- #bgGray
- #bgGreen
- #bgGrey
- #bgLightBlue
- #bgLightCyan
- #bgLightGray
- #bgLightGreen
- #bgLightGrey
- #bgLightMagenta
- #bgLightRed
- #bgLightYellow
- #bgMagenta
- #bgRed
- #bgWhite
- #bgYellow
- #black
- #blink
- #blue
- #bold
- #bright
- #color
- #cyan
- #dark_gray
- #dark_grey
- #dim
- #gray
- #green
- #grey
- #hidden
- #light_blue
- #light_cyan
- #light_gray
- #light_green
- #light_grey
- #light_magenta
- #light_red
- #light_yellow
- #magenta
- #modifier
- #red
- #reverse
- #underline
- #white
- #yellow