dahlia/ansi

Types

pub type Ansi {
  AnsiColor3(Int)
  AnsiColor4(Int)
  AnsiColor8(Int, background: Bool)
  AnsiColor24(Int, Int, Int, background: Bool)
  AnsiSGR(Int)
}

Constructors

  • AnsiColor3(Int)

    Ansi4 uses a single digit code.

  • AnsiColor4(Int)

    Ansi4 uses a single digit code.

  • AnsiColor8(Int, background: Bool)

    Ansi8 uses a single digit code for a number.

  • AnsiColor24(Int, Int, Int, background: Bool)

    Ansi 24 is represented as RGB

  • AnsiSGR(Int)

    SGR sequence, such as italics or bold.

Functions

pub fn serialize(ansi: Ansi) -> String
Search Document