color

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	// contains filtered or unexported fields
}

Color surround with color

func New

func New() *Color

New return a pointer to a Color

func (*Color) Colorful

func (c *Color) Colorful(text string) string

Colorful the text

func (*Color) Reset

func (c *Color) Reset() *Color

Reset the color

func (*Color) SetBackBlack

func (c *Color) SetBackBlack() *Color

SetLightBackBlack set the background color to light {.name}

func (*Color) SetBackBlue

func (c *Color) SetBackBlue() *Color

SetLightBackBlue set the background color to light {.name}

func (*Color) SetBackColor256

func (c *Color) SetBackColor256(color byte) *Color

SetBackColor256 set the background color using 256-bit color, not all terminals support

func (*Color) SetBackColorRGB

func (c *Color) SetBackColorRGB(r byte, g byte, b byte) *Color

SetBackColorRGB set the background color using rgb color, not all terminals support

func (*Color) SetBackCyan

func (c *Color) SetBackCyan() *Color

SetLightBackCyan set the background color to light {.name}

func (*Color) SetBackGreen

func (c *Color) SetBackGreen() *Color

SetLightBackGreen set the background color to light {.name}

func (*Color) SetBackLightBlack

func (c *Color) SetBackLightBlack() *Color

SetLightBackBlack set the background color to light {.name}

func (*Color) SetBackLightBlue

func (c *Color) SetBackLightBlue() *Color

SetLightBackBlue set the background color to light {.name}

func (*Color) SetBackLightCyan

func (c *Color) SetBackLightCyan() *Color

SetLightBackCyan set the background color to light {.name}

func (*Color) SetBackLightGreen

func (c *Color) SetBackLightGreen() *Color

SetLightBackGreen set the background color to light {.name}

func (*Color) SetBackLightMagenta

func (c *Color) SetBackLightMagenta() *Color

SetLightBackMagenta set the background color to light {.name}

func (*Color) SetBackLightRed

func (c *Color) SetBackLightRed() *Color

SetLightBackRed set the background color to light {.name}

func (*Color) SetBackLightWhite

func (c *Color) SetBackLightWhite() *Color

SetLightBackWhite set the background color to light {.name}

func (*Color) SetBackLightYellow

func (c *Color) SetBackLightYellow() *Color

SetLightBackYellow set the background color to light {.name}

func (*Color) SetBackMagenta

func (c *Color) SetBackMagenta() *Color

SetLightBackMagenta set the background color to light {.name}

func (*Color) SetBackRed

func (c *Color) SetBackRed() *Color

SetLightBackRed set the background color to light {.name}

func (*Color) SetBackWhite

func (c *Color) SetBackWhite() *Color

SetLightBackWhite set the background color to light {.name}

func (*Color) SetBackYellow

func (c *Color) SetBackYellow() *Color

SetLightBackYellow set the background color to light {.name}

func (c *Color) SetFontBlink() *Color

SetFontBlink set the font to blink, not all terminals support

func (*Color) SetFontBold

func (c *Color) SetFontBold() *Color

SetFontBold set the font to bold, not all terminals support

func (*Color) SetFontDel

func (c *Color) SetFontDel() *Color

SetFontDel set the font to del, not all terminals support

func (*Color) SetFontHide

func (c *Color) SetFontHide() *Color

SetFontHide set the font to hide, not all terminals support

func (*Color) SetFontItalic

func (c *Color) SetFontItalic() *Color

SetFontItalic set the font to italic, not all terminals support

func (c *Color) SetFontQuickBlink() *Color

SetFontQuickBlink set the font to quickBlink, not all terminals support

func (*Color) SetFontReverse

func (c *Color) SetFontReverse() *Color

SetFontReverse set the font to reverse, not all terminals support

func (*Color) SetFontUnderline

func (c *Color) SetFontUnderline() *Color

SetFontUnderline set the font to underline, not all terminals support

func (*Color) SetFontWeak

func (c *Color) SetFontWeak() *Color

SetFontWeak set the font to weak, not all terminals support

func (*Color) SetFrontBlack

func (c *Color) SetFrontBlack() *Color

SetFrontBlack set the front color to {.name}

func (*Color) SetFrontBlue

func (c *Color) SetFrontBlue() *Color

SetFrontBlue set the front color to {.name}

func (*Color) SetFrontColor256

func (c *Color) SetFrontColor256(color byte) *Color

SetFrontColor256 set the front color using 256-bit color, not all terminals support

func (*Color) SetFrontColorRGB

func (c *Color) SetFrontColorRGB(r byte, g byte, b byte) *Color

SetFrontColorRGB set the front color using rgb color, not all terminals support

func (*Color) SetFrontCyan

func (c *Color) SetFrontCyan() *Color

SetFrontCyan set the front color to {.name}

func (*Color) SetFrontGreen

func (c *Color) SetFrontGreen() *Color

SetFrontGreen set the front color to {.name}

func (*Color) SetFrontLightBlack

func (c *Color) SetFrontLightBlack() *Color

SetLightFrontBlack set the front color to light {.name}

func (*Color) SetFrontLightBlue

func (c *Color) SetFrontLightBlue() *Color

SetLightFrontBlue set the front color to light {.name}

func (*Color) SetFrontLightCyan

func (c *Color) SetFrontLightCyan() *Color

SetLightFrontCyan set the front color to light {.name}

func (*Color) SetFrontLightGreen

func (c *Color) SetFrontLightGreen() *Color

SetLightFrontGreen set the front color to light {.name}

func (*Color) SetFrontLightMagenta

func (c *Color) SetFrontLightMagenta() *Color

SetLightFrontMagenta set the front color to light {.name}

func (*Color) SetFrontLightRed

func (c *Color) SetFrontLightRed() *Color

SetLightFrontRed set the front color to light {.name}

func (*Color) SetFrontLightWhite

func (c *Color) SetFrontLightWhite() *Color

SetLightFrontWhite set the front color to light {.name}

func (*Color) SetFrontLightYellow

func (c *Color) SetFrontLightYellow() *Color

SetLightFrontYellow set the front color to light {.name}

func (*Color) SetFrontMagenta

func (c *Color) SetFrontMagenta() *Color

SetFrontMagenta set the front color to {.name}

func (*Color) SetFrontRed

func (c *Color) SetFrontRed() *Color

SetFrontRed set the front color to {.name}

func (*Color) SetFrontWhite

func (c *Color) SetFrontWhite() *Color

SetFrontWhite set the front color to {.name}

func (*Color) SetFrontYellow

func (c *Color) SetFrontYellow() *Color

SetFrontYellow set the front color to {.name}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL