Documentation ¶
Index ¶
- Constants
- func CalculateIncrementalUpdate(output *bufio.Writer, linesBefore []string, linesAfter []string)
- func CalculateIncrementalUpdateMaxLines(output *bufio.Writer, linesBefore []string, linesAfter []string, maxLines int)
- func GetColorSequence(code int) string
- func GetColoredText(color int, text string) string
- type ColorSchema
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 CalculateIncrementalUpdateMaxLines ¶ added in v1.2.1
func GetColorSequence ¶
func GetColoredText ¶
Types ¶
type ColorSchema ¶
func DefaultColorSchema ¶
func DefaultColorSchema() *ColorSchema
func NoColorSchema ¶ added in v1.6.0
func NoColorSchema() *ColorSchema
Click to show internal directories.
Click to hide internal directories.