struct

CRT::Ansi::Style

Inherits Struct < Value < Object

Constants

BLINK = Style.new(blink: true)
BOLD = Style.new(bold: true)
DEFAULT = Style.new
DIM = Style.new(dim: true)
INVERSE = Style.new(inverse: true)
ITALIC = Style.new(italic: true)
POP = Text::Control::Pop
RESET = Text::Control::Reset
STRIKE = Style.new(strikethrough: true)
UNDERLINE = Style.new(underline: true)

Constructors

default
Source

Instance methods

append_sgr(io : IO, capabilities : Capabilities = CRT::Ansi.context.capabilities) : Nil
Source
bold
Source
inverse
Source
italic
Source
merge(other : Style) : self

Merge another style on top of this one. Non-default properties of other override; boolean attributes are OR'd (additive).

Source
strikethrough
Source
underline
Source
with_bg(color : Color) : self
Source
with_fg(color : Color) : self
Source

Nested types