Skip to main content

Module sgr

Module sgr 

Source
Expand description

SGR (Select Graphic Rendition) for text styling

Constants§

BLINK
Slow Blink
BOLD
Bold
CONCEAL
Conceal/Hide
DEFAULT_BG
Default Background Color
DEFAULT_FG
Default Foreground Color
DIM
Faint/Dim
DOUBLE_UNDERLINE
Double Underline
ENCIRCLED
Encircled
FRAKTUR
Fraktur (Gothic)
FRAMED
Framed
IDEOGRAM_DOUBLE_OVERLINE
Ideogram Double Overline
IDEOGRAM_DOUBLE_UNDERLINE
Ideogram Double Underline
IDEOGRAM_OVERLINE
Ideogram Overline
IDEOGRAM_STRESS
Ideogram Stress Marking
IDEOGRAM_UNDERLINE
Ideogram Underline
ITALIC
Italic
NORMAL_INTENSITY
Normal Intensity (not bold and not faint)
NO_BLINK
Not Blinking
NO_FRAMED
Not Framed, Not Encircled
NO_IDEOGRAM
No Ideogram Attributes
NO_ITALIC
Not Italic, Not Fraktur
NO_OVERLINED
Not Overlined
NO_PROPORTIONAL_SPACING
Disable Proportional Spacing
NO_REVERSE
Not Reversed
NO_SCRIPT
Neither Superscript nor Subscript
NO_STRIKE
Not Crossed Out
NO_UNDERLINE
Not Underlined
OVERLINED
Overlined
PRIMARY_FONT
Primary/Default Font
PROPORTIONAL_SPACING
Proportional Spacing
RAPID_BLINK
Rapid Blink
RESET
Reset all attributes
REVEAL
Reveal (Not Concealed)
REVERSE
Reverse Video
STRIKE
Crossed-out/Strike
SUBSCRIPT
Subscript
SUPERSCRIPT
Superscript
UNDERLINE
Underline

Functions§

alt_font
Alternative Font 1-9
bg_color
Background Color (40-47 for basic colors, 100-107 for bright)
bg_color_256
8-bit Background Color (0-255)
bg_color_rgb
24-bit Background Color (RGB)
fg_color
Foreground Color (30-37 for basic colors, 90-97 for bright)
fg_color_256
8-bit Foreground Color (0-255)
fg_color_rgb
24-bit Foreground Color (RGB)