color

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Escape = "\033["   // \x1b
	Reset  = "\033[0m" // \x1b[39;49m
	Rs     = "\x1b[0m"

	Black   = "\033[30m"
	Red     = "\033[31m"
	Green   = "\033[32m"
	Yellow  = "\033[33m"
	Blue    = "\033[34m"
	Magenta = "\033[35m"
	Cyan    = "\033[36m"
	White   = "\033[37m"

	Black_h   = "\033[30;1m"
	Red_h     = "\033[31;1m"
	Green_h   = "\033[32;1m"
	Yellow_h  = "\033[33;1m"
	Blue_h    = "\033[34;1m"
	Magenta_h = "\033[35;1m"
	Cyan_h    = "\033[36;1m"
	White_h   = "\033[37;1m"

	Black_l   = "\033[90m"
	Red_l     = "\033[91m"
	Green_l   = "\033[92m"
	Yellow_l  = "\033[93m"
	Blue_l    = "\033[94m"
	Magenta_l = "\033[95m"
	Cyan_l    = "\033[96m"
	White_l   = "\033[97m"

	Black_b   = "\033[40m"
	Red_b     = "\033[41m"
	Green_b   = "\033[42m"
	Yellow_b  = "\033[43m"
	Blue_b    = "\033[44m"
	Magenta_b = "\033[45m"
	Cyan_b    = "\033[46m"
	White_b   = "\033[47m"

	Black_hb   = "\033[40;1m"
	Red_hb     = "\033[41;1m"
	Green_hb   = "\033[42;1m"
	Yellow_hb  = "\033[43;1m"
	Blue_hb    = "\033[44;1m"
	Magenta_hb = "\033[45;1m"
	Cyan_hb    = "\033[46;1m"
	White_hb   = "\033[47;1m"

	Black_lb   = "\033[100m"
	Red_lb     = "\033[101m"
	Green_lb   = "\033[102m"
	Yellow_lb  = "\033[103m"
	Blue_lb    = "\033[104m"
	Magenta_lb = "\033[105m"
	Cyan_lb    = "\033[106m"
	White_lb   = "\033[107m"
)

Variables

This section is empty.

Functions

func End

func End()

func Esc

func Esc(e string)

func N

func N(n int) string

N for 256 colors, where n is color index (0..255)

func Nb

func Nb(n int) string

Nb for 256 background colors, where n is color index (0..255)

func NowBlack

func NowBlack()

func NowBlue

func NowBlue()

func NowCyan

func NowCyan()

func NowGreen

func NowGreen()

func NowMagenta

func NowMagenta()

func NowRed

func NowRed()

func NowWhite

func NowWhite()

func NowYellow

func NowYellow()

func RGB

func RGB(r, g, b int) string

func RGBb

func RGBb(r, g, b int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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