MCPcopy Create free account
hub / github.com/cli/cli / ColorSupport256

Method ColorSupport256

pkg/iostreams/iostreams.go:108–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func (s *IOStreams) ColorSupport256() bool {
109 if s.colorOverride {
110 return s.colorEnabled
111 }
112 return s.term.Is256ColorSupported()
113}
114
115func (s *IOStreams) HasTrueColor() bool {
116 if s.colorOverride {

Callers 1

ColorSchemeMethod · 0.95

Calls 1

Is256ColorSupportedMethod · 0.65

Tested by

no test coverage detected