ysansi

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClearScreen  = "\033[2J"
	ClearOneLine = "\033[2K"
	NextLine     = "\033[E"
	PreLine      = "\033[F"
)

Variables

This section is empty.

Functions

func BlackStr

func BlackStr(str string) string

func BlueStr

func BlueStr(str string) string

func ChangeOneColor

func ChangeOneColor(str string, color Color) string

func ChangeTowColor

func ChangeTowColor(str string, front FrontColor, back BackColor) string

func DarkGreenStr

func DarkGreenStr(str string) string

func DoClearOneLine

func DoClearOneLine()

func DoClearPreLines

func DoClearPreLines(n int)

func DoClearScreen

func DoClearScreen()

func GreenStr

func GreenStr(str string) string

func LightBlackStr

func LightBlackStr(str string) string

func LightBlueStr

func LightBlueStr(str string) string

func LightDarkGreenStr

func LightDarkGreenStr(str string) string

func LightGreenStr

func LightGreenStr(str string) string

func LightPurpleStr

func LightPurpleStr(str string) string

func LightRedStr

func LightRedStr(str string) string

func LightWhiteStr

func LightWhiteStr(str string) string

func LightYellowStr

func LightYellowStr(str string) string

func PurpleStr

func PurpleStr(str string) string

func RedStr

func RedStr(str string) string

func ToNextLine

func ToNextLine()

func ToPreLine

func ToPreLine()

func WhiteStr

func WhiteStr(str string) string

func YellowStr

func YellowStr(str string) string

Types

type BackColor

type BackColor = Color
const (
	BackBlack BackColor = iota + 40
	BackRed
	BackGreen
	BackYellow
	BackBlue
	BackPurple
	BackDarkGreen
	BackWhite
)
const (
	BackLightBlack BackColor = iota + 100
	BackLightRed
	BackLightGreen
	BackLightYellow
	BackLightBlue
	BackLightPurple
	BackLightDarkGreen
	BackLightWhite
)

type Color

type Color int

type FrontColor

type FrontColor = Color
const (
	FrontBlack FrontColor = iota + 30
	FrontRed
	FrontGreen
	FrontYellow
	FrontBlue
	FrontPurple
	FrontDarkGreen
	FrontWhite
)
const (
	FrontLightBlack FrontColor = iota + 90
	FrontLightRed
	FrontLightGreen
	FrontLightYellow
	FrontLightBlue
	FrontLightPurple
	FrontLightDarkGreen
	FrontLightWhite
)

Jump to

Keyboard shortcuts

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