Raxol.Terminal.TextFormatting (Raxol v0.5.0)

View Source

Alias module for Raxol.Terminal.ANSI.TextFormatting. This module re-exports the functionality from ANSI.TextFormatting to maintain compatibility.

Summary

Functions

Formats a style into SGR parameters.

Gets the hyperlink from a style.

Gets the paired line type for double-height mode.

Checks if the current style needs a paired line for double-height mode.

Resets the blink attribute for text formatting.

Resets the bold attribute for text formatting.

Resets the italic attribute for text formatting.

Resets the reverse attribute for text formatting.

Resets the underline attribute for text formatting.

Sets the blink attribute for text formatting.

Sets the bold attribute for text formatting.

Sets the conceal attribute for text formatting.

Sets the double underline attribute for text formatting.

Sets the encircled attribute for text formatting.

Sets the faint attribute for text formatting.

Sets the fraktur attribute for text formatting.

Sets the framed attribute for text formatting.

Sets the italic attribute for text formatting.

Sets the overlined attribute for text formatting.

Sets the reverse attribute for text formatting.

Sets the strikethrough attribute for text formatting.

Sets the underline attribute for text formatting.

Functions

ansi_code_to_color_name(code)

See Raxol.Terminal.ANSI.TextFormatting.ansi_code_to_color_name/1.

apply_attribute(style, attribute)

See Raxol.Terminal.ANSI.TextFormatting.apply_attribute/2.

apply_color(style, type, color)

See Raxol.Terminal.ANSI.TextFormatting.apply_color/3.

effective_width(style, char)

See Raxol.Terminal.ANSI.TextFormatting.effective_width/2.

format_sgr_params(style)

Formats a style into SGR parameters.

get_background(style)

See Raxol.Terminal.ANSI.TextFormatting.get_background/1.

get_default_style()

See Raxol.Terminal.ANSI.TextFormatting.new/0.

get_foreground(style)

See Raxol.Terminal.ANSI.TextFormatting.get_foreground/1.

get_hyperlink(style)

Gets the hyperlink from a style.

get_paired_line_type(style)

Gets the paired line type for double-height mode.

needs_paired_line?(style)

Checks if the current style needs a paired line for double-height mode.

new()

See Raxol.Terminal.ANSI.TextFormatting.new/0.

reset_blink(style)

Resets the blink attribute for text formatting.

reset_bold(style)

Resets the bold attribute for text formatting.

reset_italic(style)

Resets the italic attribute for text formatting.

reset_reverse(style)

Resets the reverse attribute for text formatting.

reset_size(style)

See Raxol.Terminal.ANSI.TextFormatting.reset_size/1.

reset_underline(style)

Resets the underline attribute for text formatting.

set_background(style, color)

See Raxol.Terminal.ANSI.TextFormatting.set_background/2.

set_blink(style)

Sets the blink attribute for text formatting.

set_bold(style)

Sets the bold attribute for text formatting.

set_conceal(style)

Sets the conceal attribute for text formatting.

set_double_height_bottom(style)

See Raxol.Terminal.ANSI.TextFormatting.set_double_height_bottom/1.

set_double_height_top(style)

See Raxol.Terminal.ANSI.TextFormatting.set_double_height_top/1.

set_double_underline(style)

Sets the double underline attribute for text formatting.

set_double_width(style)

See Raxol.Terminal.ANSI.TextFormatting.set_double_width/1.

set_encircled(style)

Sets the encircled attribute for text formatting.

set_faint(style)

Sets the faint attribute for text formatting.

set_foreground(style, color)

See Raxol.Terminal.ANSI.TextFormatting.set_foreground/2.

set_fraktur(style)

Sets the fraktur attribute for text formatting.

set_framed(style)

Sets the framed attribute for text formatting.

set_italic(style)

Sets the italic attribute for text formatting.

set_overlined(style)

Sets the overlined attribute for text formatting.

set_reverse(style)

Sets the reverse attribute for text formatting.

set_strikethrough(style)

Sets the strikethrough attribute for text formatting.

set_underline(style)

Sets the underline attribute for text formatting.