Documentation
¶
Index ¶
- Variables
- func Black() string
- func BlackBg() string
- func Blink(state bool) string
- func Blue() string
- func BlueBg() string
- func Bold(state bool) string
- func BrightBlue() string
- func BrightBlueBg() string
- func BrightCyan() string
- func BrightCyanBg() string
- func BrightGreen() string
- func BrightGreenBg() string
- func BrightGrey() string
- func BrightGreyBg() string
- func BrightMagenta() string
- func BrightMagentaBg() string
- func BrightRed() string
- func BrightRedBg() string
- func BrightYellow() string
- func BrightYellowBg() string
- func Clear() string
- func Cursor(x, y int) string
- func Cyan() string
- func CyanBg() string
- func Down(n int) string
- func Erase() string
- func Green() string
- func GreenBg() string
- func Grey() string
- func GreyBg() string
- func Left(n int) string
- func Magenta() string
- func MagentaBg() string
- func Red() string
- func RedBg() string
- func RemoveEscapeSequences()
- func Reset() string
- func Reverse(state bool) string
- func Right(n int) string
- func ToHTML(text []byte) []byte
- func Underline(state bool) string
- func Up(n int) string
- func White() string
- func WhiteBg() string
- func Yellow() string
- func YellowBg() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = []string{
"#000000", "#Dd0000", "#00CF12", "#C2CB00", "#3100CA", "#E100C6", "#00CBCB", "#C7C7C7",
"#686868", "#FF5959", "#00FF6B", "#FAFF5C", "#775AFF", "#FF47FE", "#0FFFFF", "#FFFFFF",
}
Colors defines the standard HTML colours for ANSI.
Functions ¶
func BrightGreenBg ¶
func BrightGreenBg() string
BrightGreenBg colours text in bright green background.
func BrightMagentaBg ¶
func BrightMagentaBg() string
BrightMagentaBg colours text in bright magenta background.
func BrightYellowBg ¶
func BrightYellowBg() string
BrightYellowBg colours text in bright yellow background.
func Clear ¶
func Clear() string
Clear clears the screen and move the cursor to the top left corner.
func Cursor ¶
Cursor moves the cursor to line y, column x. This indexes from the top left corner of the screen.
func Erase ¶
func Erase() string
Erase erases everything to the left of the cursor on the line the cursor is on.
func RemoveEscapeSequences ¶
func RemoveEscapeSequences()
RemoveEscapeSequences removes ANSI escape sequences.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.