cli

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 2 Imported by: 0

README

Command-Line Interface

Documentation

Index

Constants

View Source
const (
	Inherit Color = iota
	NoColor
	Black
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
	BrightBlack
	BrightRed
	BrightGreen
	BrightYellow
	BrightBlue
	BrightMagenta
	BrightCyan
	BrightWhite
	Bold Attr = iota
	Underscore
	Blink
	ReverseVideo
	Concealed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attr

type Attr int

type Color

type Color int

type ColoredText

type ColoredText struct {
	Text  string
	FG    Color
	BG    Color
	Attrs map[int]bool
	Clear bool
}

func NewColoredText

func NewColoredText(text string) *ColoredText

func (*ColoredText) Init

func (c *ColoredText) Init() *ColoredText

func (*ColoredText) Reset

func (c *ColoredText) Reset() *ColoredText

func (*ColoredText) SetAttr

func (c *ColoredText) SetAttr(attr Attr, on bool) *ColoredText

func (*ColoredText) SetBG

func (c *ColoredText) SetBG(color Color) *ColoredText

func (*ColoredText) SetFG

func (c *ColoredText) SetFG(color Color) *ColoredText

func (*ColoredText) String

func (c *ColoredText) String() string

Jump to

Keyboard shortcuts

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