Skip to content

[Feat]: Add support for ANSI coloring #4

@MatthewSH

Description

@MatthewSH

Examples:

This may need to be a different file or export because I think it goes beyond basic formatting and may require a builder of some sort.

Potential setup 1:

coloredText()
  .line("Text", [bgRed, textYellow]) // implies reset between lines
  .line("Text 2", [textGreen, bgBlue])

Potential setup 2:

coloredText([
  ["text", bgblue, textYellow], //implies reset between lines
  ["text", textGreen, bgRed]
])

Potential setup 3:

// manual reset
coloredText()
  .reset()
  .bgBlue()
  .textRed()
  .text("text")
  .reset()
  .bgGreen()
  .textYellow()
  .text("text")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions