Documentation ¶
Index ¶
Constants ¶
View Source
const ASCIIClear = "\x1b[0m"
ASCIIClear is the ASCII needed to reset the color settings
Variables ¶
View Source
var ANSIColor = [...]RGB{
{0x00, 0x00, 0x00}, {0xcd, 0x00, 0x00},
{0x00, 0xcd, 0x00}, {0xcd, 0xcd, 0x00},
{0x00, 0x00, 0xee}, {0xcd, 0x00, 0xcd},
{0x00, 0xcd, 0xcd}, {0xe5, 0xe5, 0xe5},
{0x7f, 0x7f, 0x7f}, {0xff, 0x00, 0x00},
{0x00, 0xff, 0x00}, {0xff, 0xff, 0x00},
{0x5c, 0x5c, 0xff}, {0xff, 0x00, 0xff},
{0x00, 0xff, 0xff}, {0xff, 0xff, 0xff},
}
ANSIColor are the color sets for both 8 and 16 color terms
Functions ¶
func DetectTermColor ¶
func DetectTermColor() int
DetectTermColor is the "Poor-mans color mode detection."
Types ¶
Click to show internal directories.
Click to hide internal directories.