ansi

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: BSD-3-Clause, GPL-3.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlackCode string = esc + "30m"
View Source
var BlinkCode string = esc + "5m"
View Source
var BlueCode string = esc + "34m"
View Source
var BoldCode string = esc + "1m"
View Source
var CodeByName = map[string]string{
	"reset":    ResetCode,
	"bold":     BoldCode,
	"italic":   ItalicCode,
	"blink":    BlinkCode,
	"invert":   InvertCode,
	"black":    BlackCode,
	"red":      RedCode,
	"green":    GreenCode,
	"yellow":   YellowCode,
	"blue":     BlueCode,
	"magenta":  MagentaCode,
	"cyan":     CyanCode,
	"white":    WhiteCode,
	"darkgrey": DarkGreyCode,
}
View Source
var CyanCode string = esc + "36m"
View Source
var DarkGreyCode string = BoldCode + BlackCode
View Source
var GreenCode string = esc + "32m"
View Source
var InvertCode string = esc + "7m"
View Source
var ItalicCode string = esc + "3m"
View Source
var MagentaCode string = esc + "35m"
View Source
var RedCode string = esc + "31m"
View Source
var ResetCode string = esc + "0m"
View Source
var UnderlineCode string = esc + "4m"
View Source
var WhiteCode string = esc + "37m"
View Source
var YellowCode string = esc + "33m"

Functions

func Black

func Black(text string) string
func Blink(text string) string

func Blue

func Blue(text string) string

func Bold

func Bold(text string) string

func Cyan

func Cyan(text string) string

func DarkGrey

func DarkGrey(text string) string

func Green

func Green(text string) string

func Invert

func Invert(text string) string

func Italic

func Italic(text string) string

func Magenta

func Magenta(text string) string

func Red

func Red(text string) string

func Sort

func Sort(items []string)

func Strip

func Strip(text string) string

func Underline

func Underline(text string) string

func White

func White(text string) string

func Yellow

func Yellow(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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