Documentation ¶
Index ¶
Constants ¶
View Source
const ( Black int = iota + 30 Red Green Yellow Blue Magenta Cyan White )
https://rosettacode.org/wiki/Terminal_control/Coloured_text#ANSI_escape_codes
View Source
const EscapePrefix = "\033["
Variables ¶
View Source
var ( // Colors are predeclared and accessible externally Colors = map[string]colorSet{ "Black": initColor(Black), "Red": initColor(Red), "Green": initColor(Green), "Yellow": initColor(Yellow), "Blue": initColor(Blue), "Magenta": initColor(Magenta), "Cyan": initColor(Cyan), "White": initColor(White), } // Controls exports some other strings/bytes Controls = map[string]ansiSet{ "Prefix": initControl( "Prefix", EscapePrefix, ), "Bold": initControl( "Bold", EscapePrefix+"1m", ), "Clear": initControl( "Clear", EscapePrefix+"2J", ), "Dim": initControl( "Dim", EscapePrefix+"2m", ), "Hide": initControl( "Hide", EscapePrefix+"8m", ), "Blink": initControl( "Blink", EscapePrefix+"5m", ), "Unblink": initControl( "Unblink", EscapePrefix+"25m", ), "Reset": initControl( "Reset", EscapePrefix+"0m", ), "Reverse": initControl( "Reverse", EscapePrefix+"7m", ), "Underline": initControl( "Underline", EscapePrefix+"4m", ), } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.