MCPcopy Index your code
hub / github.com/python/cpython / has_colors

Method has_colors

Lib/profiling/sampling/live_collector/display.py:168–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 self.nodelay_flag = flag
167
168 def has_colors(self):
169 return self.colors_supported
170
171 def init_color_pair(self, pair_id, fg, bg):
172 self.color_pairs[pair_id] = (fg, bg)

Callers 6

_setup_colorsMethod · 0.45
init_cursesMethod · 0.45
has_colorsMethod · 0.45
wrappedFunction · 0.45
test_has_colorsMethod · 0.45
test_start_colorMethod · 0.45

Calls

no outgoing calls

Tested by 3

wrappedFunction · 0.36
test_has_colorsMethod · 0.36
test_start_colorMethod · 0.36