fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.24k stars 615 forks source link

rich-text formatting completed #118

Closed iambenkay closed 3 years ago

iambenkay commented 3 years ago

What's New?

Includes a whole new way to format strings with various rich text identifiers.

c := color.New()

c.PrintlnRT("This is the example of *Rich Text Formatting* in the ~terminal~. (fg:black|(bg:cyan|BLACK text on a CYAN background)).")

Output:

image

Usage

BOLD - *bold text* ITALICS - _italicized text_ UNDERLINE - ~underlined text~ TEXT COLOR - (fg:red|red text) BACKGROUND COLOR - (bg:cyan|cyan background)

Feel free to suggest anything you feel should be added to this PR.

iambenkay commented 3 years ago

This is a response to my issue #117

iambenkay commented 3 years ago

@fatih Can you take a look at this.

iambenkay commented 3 years ago

@fatih @bogem @zddhub