MCPcopy Create free account
hub / github.com/ActiveState/code / display_header

Function display_header

recipes/Python/577933_DistCC_top/recipe-577933.py:30–35  ·  view source on GitHub ↗
(scr)

Source from the content-addressed store, hash-verified

28 write(scr, 1, 27, '%.02f' % lavg[2], curses.color_pair(9))
29
30def display_header(scr):
31 write(scr, 3, 0, 'Slot', curses.A_BOLD)
32 write(scr, 3, 5, 'Host', curses.A_BOLD)
33 write(scr, 3, 25, 'State', curses.A_BOLD)
34 write(scr, 3, 45, 'Filename', curses.A_BOLD)
35 #'%-4s %-20s %-15s %-40s%s' % ('Slot', 'Remote Host', 'State', 'Filename', ' '*(maxX-83)), curses.A_BOLD)
36
37def getStats(scr):
38 curses.init_pair(9, curses.COLOR_WHITE, curses.COLOR_BLACK)

Callers 1

getStatsFunction · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected