Full Line Text Functions for Effects and Styling#
Examples#
Effect | Full Text Function | Example |
---|---|---|
Bold | effect_bold("text") | This is BOLD |
Dim | effect_dim("text") | This is DIMMED |
Underline | effect_underline("text") | This is UNDERLINED |
Blink | effect_blink("text") | This is BLINKING |
Reverse | effect_reverse("text") | This is REVERSED |
Hide | effect_hide("text") | This is HIDDEN |
Functions#
effect_blink(text, color=None)
#
Prints full line of text with blink effect.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with blink effect. | required |
color | Color | BrightColor | ColorVGA | ColorRGB | ColorHSL | ColorHex | BgColor | BgBrightColor | BgColorVGA | BgColorRGB | BgColorHSL | BgColorHex | str | None | Optionally add color to text. | None |
Example
How it appears in the terminal:
% This is BLINKING
% This is BLINKING
% This is BLINKING
% This is BLINKING
effect_bold(text, color=None)
#
Prints full line of text with bold styling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with bold styling. | required |
color | Color | BrightColor | ColorVGA | ColorRGB | ColorHSL | ColorHex | BgColor | BgBrightColor | BgColorVGA | BgColorRGB | BgColorHSL | BgColorHex | str | None | Optionally add color to text. | None |
Example
How it appears in the terminal:
% This is BOLD
% This is BOLD
% This is BOLD
% This is BOLD
effect_dim(text, color=None)
#
Prints full line of text with dim styling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with dim effect. | required |
color | Color | BrightColor | ColorVGA | ColorRGB | ColorHSL | ColorHex | BgColor | BgBrightColor | BgColorVGA | BgColorRGB | BgColorHSL | BgColorHex | str | None | Optionally add color to text. | None |
Example
How it appears in the terminal:
% This is DIMMED
% This is DIMMED
% This is DIMMED
% This is DIMMED
effect_hide(text, color=None)
#
Prints full line of text with hide effect.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with hide effect. | required |
color | Color | BrightColor | ColorVGA | ColorRGB | ColorHSL | ColorHex | BgColor | BgBrightColor | BgColorVGA | BgColorRGB | BgColorHSL | BgColorHex | str | None | Optionally add color to text. | None |
Example
How it appears in the terminal:
% This is HIDDEN
% This is HIDDEN
% This is HIDDEN
% This is HIDDEN
effect_reverse(text, color=None)
#
Prints full line of text with reversed foreground and background color effect.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with reverse effect. | required |
color | Color | BrightColor | ColorVGA | ColorRGB | ColorHSL | ColorHex | BgColor | BgBrightColor | BgColorVGA | BgColorRGB | BgColorHSL | BgColorHex | str | None | Optionally add color to text. | None |
Example
How it appears in the terminal:
% This is REVERSED
% This is REVERSED
% This is REVERSED
% This is REVERSED
effect_underline(text, color=None)
#
Prints full line of text with underline styling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with underline styling. | required |
color | Color | BrightColor | ColorVGA | ColorRGB | ColorHSL | ColorHex | BgColor | BgBrightColor | BgColorVGA | BgColorRGB | BgColorHSL | BgColorHex | str | None | Optionally add color to text. | None |
Example
How it appears in the terminal:
% This is UNDERLINED
% This is UNDERLINED
% This is UNDERLINED
% This is UNDERLINED