Raxol.Terminal.ANSI.TextFormatting (Raxol v2.0.1)
View SourceConsolidated text formatting module for the terminal emulator. Combines Core, Attributes, and Colors functionality. Handles advanced text formatting features including double-width/height, text attributes, and color management.
Summary
Types
@type color() :: :black | :red | :green | :yellow | :blue | :magenta | :cyan | :white | {:rgb, non_neg_integer(), non_neg_integer(), non_neg_integer()} | {:index, non_neg_integer()} | nil
@type t() :: %Raxol.Terminal.ANSI.TextFormatting{ background: color(), blink: boolean(), bold: boolean(), conceal: boolean(), double_height: :none | :top | :bottom, double_underline: boolean(), double_width: boolean(), encircled: boolean(), faint: boolean(), foreground: color(), fraktur: boolean(), framed: boolean(), hyperlink: String.t() | nil, italic: boolean(), overlined: boolean(), reverse: boolean(), strikethrough: boolean(), underline: boolean() }
@type text_style() :: %{ double_width: boolean(), double_height: :none | :top | :bottom, bold: boolean(), faint: boolean(), italic: boolean(), underline: boolean(), blink: boolean(), reverse: boolean(), conceal: boolean(), strikethrough: boolean(), fraktur: boolean(), double_underline: boolean(), framed: boolean(), encircled: boolean(), overlined: boolean(), foreground: color(), background: color(), hyperlink: String.t() | nil }