ansi

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ANSIReset string = "\x1b[m"

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color interface {
	Foreground() string
	Background() string
}

type Color256

type Color256 uint8

func (Color256) Background

func (c Color256) Background() string

func (Color256) Foreground

func (c Color256) Foreground() string

type ColorANSI

type ColorANSI uint8
const (
	ColorANSIBlack   ColorANSI = 0
	ColorANSIRed     ColorANSI = 1
	ColorANSIGreen   ColorANSI = 2
	ColorANSIYellow  ColorANSI = 3
	ColorANSIBlue    ColorANSI = 4
	ColorANSIMagenta ColorANSI = 5
	ColorANSICyan    ColorANSI = 6
	ColorANSIWhite   ColorANSI = 7
)

func (ColorANSI) Background

func (c ColorANSI) Background() string

func (ColorANSI) Foreground

func (c ColorANSI) Foreground() string

Jump to

Keyboard shortcuts

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