incolor

package
v0.0.0-...-14b6000 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func StringBlack

func StringBlack(format string, a ...interface{}) string

func StringBlackH

func StringBlackH(format string, a ...interface{}) string

func StringBlue

func StringBlue(format string, a ...interface{}) string

func StringBlueH

func StringBlueH(format string, a ...interface{}) string

func StringCyan

func StringCyan(format string, a ...interface{}) string

func StringCyanH

func StringCyanH(format string, a ...interface{}) string

func StringGreen

func StringGreen(format string, a ...interface{}) string

func StringGreenH

func StringGreenH(format string, a ...interface{}) string

func StringMagenta

func StringMagenta(format string, a ...interface{}) string

func StringMagentaH

func StringMagentaH(format string, a ...interface{}) string

func StringRed

func StringRed(format string, a ...interface{}) string

func StringRedH

func StringRedH(format string, a ...interface{}) string

func StringWhite

func StringWhite(format string, a ...interface{}) string

func StringWhiteH

func StringWhiteH(format string, a ...interface{}) string

func StringYellow

func StringYellow(format string, a ...interface{}) string

func StringYellowH

func StringYellowH(format string, a ...interface{}) string

Types

type TAttribute

type TAttribute int
const (
	Reset TAttribute = iota
	Bold
	Faint
	Italic
	Underline
	BlinkSlow
	BlinkRapid
	ReverseVideo
	Concealed
	CrossedOut
)

Attributes

const (
	ResetBold TAttribute = iota + 22
	ResetItalic
	ResetUnderline
	ResetBlinking

	ResetReversed
	ResetConcealed
	ResetCrossedOut
)
const (
	Black TAttribute = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
)

Text colors

const (
	BlackH TAttribute = iota + 90
	RedH
	GreenH
	YellowH
	BlueH
	MagentaH
	CyanH
	WhiteH
)

Hi-Intensity text colors

type TStColorTerm

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

func NewCT

func NewCT(value ...TAttribute) *TStColorTerm

func (*TStColorTerm) AddAttr

func (ct *TStColorTerm) AddAttr(value ...TAttribute) *TStColorTerm

func (*TStColorTerm) FSprint

func (ct *TStColorTerm) FSprint() func(a ...interface{}) string

func (*TStColorTerm) FSprintf

func (ct *TStColorTerm) FSprintf() func(format string, a ...interface{}) string

Jump to

Keyboard shortcuts

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