Raxol.Terminal.Formatting.Manager (Raxol v0.5.0)
View SourceManages terminal text formatting and styling operations.
Summary
Functions
Applies a new format to the current state.
Applies formatting to a string.
Gets the current formatting state.
Creates a new formatting manager instance.
Resets the current format to default values.
Restores the previously saved format state.
Saves the current format state.
Sets the background color.
Sets the font number.
Sets the foreground color.
Toggles blink formatting.
Toggles bold formatting.
Toggles conceal formatting.
Toggles faint formatting.
Toggles italic formatting.
Toggles reverse video formatting.
Toggles strikethrough formatting.
Toggles underline formatting.
Types
@type format() :: %{ bold: boolean(), faint: boolean(), italic: boolean(), underline: boolean(), blink: boolean(), reverse: boolean(), conceal: boolean(), strikethrough: boolean(), foreground: Raxol.Terminal.Color.color() | nil, background: Raxol.Terminal.Color.color() | nil, font: non_neg_integer() }
Functions
Applies a new format to the current state.
Applies formatting to a string.
Gets the current formatting state.
Creates a new formatting manager instance.
Resets the current format to default values.
Restores the previously saved format state.
Saves the current format state.
Sets the background color.
Sets the font number.
Sets the foreground color.
Toggles blink formatting.
Toggles bold formatting.
Toggles conceal formatting.
Toggles faint formatting.
Toggles italic formatting.
Toggles reverse video formatting.
Toggles strikethrough formatting.
Toggles underline formatting.