terminal

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlackColor = iota
	RedColor
	GreenColor
	YellowColor
	BlueColor
	MagentaColor
	CyanColor
	WhiteColor
)
View Source
const NoColor = -1
View Source
const ResetSequence = "\033[0m"

Reset ANSI sequence.

Variables

This section is empty.

Functions

func CalculateIncrementalUpdate

func CalculateIncrementalUpdate(output *bufio.Writer, linesBefore []string, linesAfter []string)

func CalculateIncrementalUpdateMaxLines added in v1.2.1

func CalculateIncrementalUpdateMaxLines(output *bufio.Writer, linesBefore []string, linesAfter []string, maxLines int)

func GetColorSequence

func GetColorSequence(code int) string

func GetColoredText

func GetColoredText(color int, text string) string

Types

type ColorSchema

type ColorSchema struct {
	SuccessColor int
	FailureColor int
	NeutralColor int
}

func DefaultColorSchema

func DefaultColorSchema() *ColorSchema

func NoColorSchema added in v1.6.0

func NoColorSchema() *ColorSchema

Jump to

Keyboard shortcuts

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