color

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Unlicense Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// empty color
	Null = ""

	Black   = "black"
	Red     = "red"
	Green   = "green"
	Yellow  = "yellow"
	Blue    = "blue"
	Magenta = "magenta"
	Cyan    = "cyan"
	White   = "white"
	Default = "default"

	Bold       = "bold"
	Underscore = "underscore"
	Blink      = "blink"
	Reverse    = "reverse"
	Conceal    = "conceal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

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

color struct

func BackgroundColor

func BackgroundColor(name string) Color

get color from background const

func ForegroundColor

func ForegroundColor(name string) Color

get color from foreground const

func NewColor

func NewColor(set int, unset int) Color

color constructor

func Option

func Option(name string) Color

get color from option const

func (*Color) Unset

func (c *Color) Unset() int

Get the default color value

func (*Color) Value

func (c *Color) Value() int

Get the setter color value

Jump to

Keyboard shortcuts

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