Module styles

Module styles 

Source
Expand description

§Important

Please check if you’re printing your text on a terminal, otherwise it probably won’t work. This module is only for terminals that support ANSI escape codes.

Structs§

Rgb
StyleBuilder

Constants§

BLACK
BLACK_BG
BLINK_OFF
Reset the blink
BLUE
BLUEBERRY
BLUEBERRY_BG
BLUE_BG
BOLD
Increase the font weight
BOLD_OFF
Decrease the font weight
BRIGHT_BLACK
BRIGHT_BLACK_BG
BRIGHT_BLUE
BRIGHT_BLUE_BG
BRIGHT_CYAN
BRIGHT_CYAN_BG
BRIGHT_GREEN
BRIGHT_GREEN_BG
BRIGHT_MAGENTA
BRIGHT_MAGENTA_BG
BRIGHT_RED
BRIGHT_RED_BG
BRIGHT_WHITE
BRIGHT_WHITE_BG
BRIGHT_YELLOW
BRIGHT_YELLOW_BG
CYAN
CYAN_BG
DOUBLE_UNDERLINE
END_BG
FAINT
Decrease the intensity
FAINT_OFF
Reset the intensity
FAST_BLINK
Make the text blink
FOREGROUND_OFF
GREEN
GREEN_BG
INVERSE
INVERSE_OFF
INVISIBLE
INVISIBLE_OFF
ITALICS
ITALICS_OFF
MAGENTA
MAGENTA_BG
ORANGE
ORANGE_BG
OVERLINE
OVERLINE_OFF
PINK
PINK_BG
RED
RED_BG
RESET
Reset all styles
SLOW_BLINK
Make the text blink
STRIKETHROUGH
STRIKETHROUGH_OFF
UNDERLINE
UNDERLINE_OFF
WHITE
WHITE_BG
YELLOW
YELLOW_BG

Traits§

Stylize
A trait that provides styling for terminals that support ANSI escape codes.

Functions§

reset
Resets the text to its default style.