Documentation ¶
Overview ¶
Package supportscolor provides information on the level of color support found in a given terminal, obeying OS-specific color flags. Testing currently has been done via. iTerm2 manual testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ForcedColor determines if there are flags in place forcing color. // This should never really change during the lifetime of a given program. ForcedColor *bool )
Functions ¶
This section is empty.
Types ¶
type ColorSupport ¶
ColorSupport represents the given colors the terminal supports.
func GetSupportLevel ¶
func GetSupportLevel() *ColorSupport
GetSupportLevel returns a struct containing whether or not certain color sizes are supported in a given terminal.
Click to show internal directories.
Click to hide internal directories.