module Lemonade::FormattingHelper

Extended Modules

Defined in:

lemonade/formatting_helper.cr

Constant Summary

RAW_STUFF = {fg: {"foreground", 'F'}, bg: {"background", 'B'}, line: {"underline & overline attributes", 'U'}}

Instance Method Summary

Instance Method Detail

def bg(block, color = ColorReset) #

Formats block with background color.


[View source]
def bg_color(color) #

Set background color.


[View source]
def bg_color_reset #

Reset "background" color.


[View source]
def disable_overline #

Disables attribute overline


[View source]
def disable_underline #

Disables attribute underline


[View source]
def enable_overline #

Enables attribute overline


[View source]
def enable_underline #

Enables attribute underline


[View source]
def fg(block, color = ColorReset) #

Formats block with foreground color.


[View source]
def fg_color(color) #

Set foreground color.


[View source]
def fg_color_reset #

Reset "foreground" color.


[View source]
def fgbg(block, fg fg_color, bg bg_color) #

Formats block with foreground fg color, and background bg color.


[View source]
def line_color(color) #

Set underline & overline attributes color.


[View source]
def line_color_reset #

Reset "underline & overline attributes" color.


[View source]
def ol(block, color = ColorReset) #

Overlines block, colored using color.


[View source]
def toggle_overline #

Toggles attribute overline


[View source]
def toggle_underline #

Toggles attribute underline


[View source]
def ul(block, color = ColorReset) #

Underlines block, colored using color.


[View source]