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

Method update

unimatrix.py:330–339  ·  view source on GitHub ↗

Writes new message to the status area

(self, message, delay)

Source from the content-addressed store, hash-verified

328 self.last_message = ''
329
330 def update(self, message, delay):
331 """
332 Writes new message to the status area
333 """
334 if not args.status_off:
335 message_str = message.ljust(11)
336 self.screen.addstr(0, 0, message_str, curses.color_pair(3))
337 self.last_message = message_str
338 # More frames for faster speeds:
339 self.countdown = (100 // (delay // 10 + 1)) + 2
340
341 def refresh(self):
342 """

Callers 6

cycle_boldMethod · 0.80
getMethod · 0.80
set_fg_colorMethod · 0.80
set_bg_colorMethod · 0.80
show_speedMethod · 0.80
toggle_statusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected