exchalk v1.0.3 ExChalk
Provides a simple interface to text color and styling.
ExChalk exposes three APIs: colors, background colors, and modifiers.
Colors
ExChalk.color_name(text) will color text with color_name color.
Supported colors are:
blackredgreenyellowbluemagentacyanwhitegray
Example: ExChalk.red("Hello!")
Background colors
ExChalk.bg_color_name(text) will color text with bg_color_name
background color.
Supported background colors are:
bg_blackbg_redbg_greenbg_yellowbg_bluebg_magentabg_cyanbg_white
Example: ExChalk.bg_red("Hello!")
Modifiers
ExChalk.modifier(text) will style text with a given modifier.
Supported modifiers are:
resetbolddimitalicunderlineinversehiddenstrikethrough
Example: ExChalk.italic("Hello!")
Link to this section Summary
Functions
Converts the given IO list to a string
Link to this section Functions
Link to this function
bg_black(str)
Link to this function
bg_blue(str)
Link to this function
bg_cyan(str)
Link to this function
bg_green(str)
Link to this function
bg_magenta(str)
Link to this function
bg_red(str)
Link to this function
bg_white(str)
Link to this function
bg_yellow(str)
Link to this function
black(str)
Link to this function
blue(str)
Link to this function
bold(str)
Link to this function
cyan(str)
Link to this function
dim(str)
Link to this function
gray(str)
Link to this function
green(str)
Link to this function
grey(str)
Link to this function
inverse(str)
Link to this function
italic(str)
Link to this function
magenta(str)
Link to this function
red(str)
Link to this function
reset(str)
Link to this function
strikethrough(str)
Converts the given IO list to a string
Link to this function
underline(str)
Link to this function
white(str)
Link to this function