Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_colors
Method · 0.45
init_curses
Method · 0.45
has_colors
Method · 0.45
wrapped
Function · 0.45
test_has_colors
Method · 0.45
test_start_color
Method · 0.45
Calls
no outgoing calls
Tested by
3
wrapped
Function · 0.36
test_has_colors
Method · 0.36
test_start_color
Method · 0.36