Documentation ¶
Index ¶
- Constants
- func BlackStr(str string) string
- func BlueStr(str string) string
- func ChangeOneColor(str string, color Color) string
- func ChangeTowColor(str string, front FrontColor, back BackColor) string
- func DarkGreenStr(str string) string
- func DoClearOneLine()
- func DoClearPreLines(n int)
- func DoClearScreen()
- func GreenStr(str string) string
- func LightBlackStr(str string) string
- func LightBlueStr(str string) string
- func LightDarkGreenStr(str string) string
- func LightGreenStr(str string) string
- func LightPurpleStr(str string) string
- func LightRedStr(str string) string
- func LightWhiteStr(str string) string
- func LightYellowStr(str string) string
- func PurpleStr(str string) string
- func RedStr(str string) string
- func ToNextLine()
- func ToPreLine()
- func WhiteStr(str string) string
- func YellowStr(str string) string
- type BackColor
- type Color
- type FrontColor
Constants ¶
View Source
const ( ClearScreen = "\033[2J" ClearOneLine = "\033[2K" NextLine = "\033[E" PreLine = "\033[F" )
Variables ¶
This section is empty.
Functions ¶
func ChangeOneColor ¶
func ChangeTowColor ¶
func ChangeTowColor(str string, front FrontColor, back BackColor) string
func DarkGreenStr ¶
func DoClearOneLine ¶
func DoClearOneLine()
func DoClearPreLines ¶
func DoClearPreLines(n int)
func DoClearScreen ¶
func DoClearScreen()
func LightBlackStr ¶
func LightBlueStr ¶
func LightDarkGreenStr ¶
func LightGreenStr ¶
func LightPurpleStr ¶
func LightRedStr ¶
func LightWhiteStr ¶
func LightYellowStr ¶
func ToNextLine ¶
func ToNextLine()
Types ¶
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 )
Click to show internal directories.
Click to hide internal directories.