colors

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscardNonColorEscSeq outputMode
	OutputNonColorEscSeq
)

DiscardNonColorEscSeq supports the divided color escape sequence. But non-color escape sequence is not output. Please use the OutputNonColorEscSeq If you want to output a non-color escape sequences such as ncurses. However, it does not support the divided color escape sequence.

Variables

This section is empty.

Functions

func Black

func Black(message string) string

Black returns a black string

func BlackBold

func BlackBold(message string) string

BlackBold returns a black Bold string

func Blue

func Blue(message string) string

Blue returns a blue string

func BlueBold

func BlueBold(message string) string

BlueBold returns a blue Bold string

func Bold

func Bold(message string) string

func Cyan

func Cyan(message string) string

Cyan returns a cyan string

func CyanBold

func CyanBold(message string) string

CyanBold returns a cyan Bold string

func Gray

func Gray(message string) string

Gray returns a gray string

func GrayBold

func GrayBold(message string) string

GrayBold returns a gray Bold string

func Green

func Green(message string) string

Green returns a green string

func GreenBold

func GreenBold(message string) string

GreenBold returns a green Bold string

func Magenta

func Magenta(message string) string

Magenta returns a magenta string

func MagentaBold

func MagentaBold(message string) string

MagentaBold returns a magenta Bold string

func NewColorWriter

func NewColorWriter(w io.Writer) io.Writer

NewColorWriter creates and initializes a new ansiColorWriter using io.Writer w as its initial contents. In the console of Windows, which change the foreground and background colors of the text by the escape sequence. In the console of other systems, which writes to w all text.

func NewModeColorWriter

func NewModeColorWriter(w io.Writer, mode outputMode) io.Writer

NewModeColorWriter create and initializes a new ansiColorWriter by specifying the outputMode.

func Red

func Red(message string) string

Red returns a red string

func RedBold

func RedBold(message string) string

RedBold returns a red Bold string

func White

func White(message string) string

White returns a white string

func WhiteBold

func WhiteBold(message string) string

WhiteBold returns a white Bold string

func Yellow

func Yellow(message string) string

Yellow returns a yellow string

func YellowBold

func YellowBold(message string) string

YellowBold returns a yellow Bold string

Types

This section is empty.

Jump to

Keyboard shortcuts

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