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

Method ColorSupport256

pkg/iostreams/iostreams.go:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

ColorSchemeMethod · 0.95

Calls 1

Is256ColorSupportedMethod · 0.65

Tested by

no test coverage detected