color

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package color provides default foreground and background color convenience variables. For simple color manipulation it is nice to be able to write:

fmt.Println(sgr.Wrap(color.Red, "error"))

versus:

fmt.Println(sgr.Wrap(sgr.Red.FG(), "error"))

Index

Constants

This section is empty.

Variables

View Source
var (
	Black   = fg(sgr.Black)
	Red     = fg(sgr.Red)
	Green   = fg(sgr.Green)
	Yellow  = fg(sgr.Yellow)
	Blue    = fg(sgr.Blue)
	Magenta = fg(sgr.Magenta)
	Cyan    = fg(sgr.Cyan)
	White   = fg(sgr.White)

	BlackBG   = bg(sgr.Black)
	RedBG     = bg(sgr.Red)
	GreenBG   = bg(sgr.Green)
	YellowBG  = bg(sgr.Yellow)
	BlueBG    = bg(sgr.Blue)
	MagentaBG = bg(sgr.Magenta)
	CyanBG    = bg(sgr.Cyan)
	WhiteBG   = bg(sgr.White)
)

Standard ANSI foreground and background colors.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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