MCPcopy
hub / github.com/will8211/unimatrix / set_fg_color

Method set_fg_color

unimatrix.py:542–550  ·  view source on GitHub ↗

Set foreground color

(self, name)

Source from the content-addressed store, hash-verified

540 return True
541
542 def set_fg_color(self, name):
543 """
544 Set foreground color
545 """
546 self.fg = colors_str[name.lower()]
547 curses.init_pair(1, self.fg, self.bg)
548 if name == 'default':
549 name = "Def't color"
550 self.stat.update(name, self.delay)
551
552 def set_bg_color(self, name):
553 """

Callers 1

getMethod · 0.95

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected