Source File
color.go
Belonging Package
github.com/hinshun/vt10x
package vt10x// ANSI color valuesconst (Black Color = iotaRedGreenYellowBlueMagentaCyanLightGreyDarkGreyLightRedLightGreenLightYellowLightBlueLightMagentaLightCyanWhite)// Default colors are potentially distinct to allow for special behavior.// For example, a transparent background. Otherwise, the simple case is to// map default colors to another color.const (DefaultFG Color = 1<<24 + iotaDefaultBGDefaultCursor)// Color maps to the ANSI colors [0, 16) and the xterm colors [16, 256).type Color uint32// ANSI returns true if Color is within [0, 16).func ( Color) () bool {return ( < 16)}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |