MCPcopy Create free account
hub / github.com/19PINE-AI/ikp / initial_draw

Function initial_draw

cli/progress.py:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 drawn_rows = {"n": 0}
90
91 def initial_draw():
92 frame = SPINNER[0]
93 w = term_width()
94 total = 0
95 for i in range(n):
96 line = render_row(i, frame)
97 sys.stdout.write(line + "\n")
98 total += _wrapped_rows(line, w)
99 drawn_rows["n"] = total
100 sys.stdout.flush()
101
102 def repaint():
103 frame = SPINNER[int(time.time() * 10) % len(SPINNER)]

Callers 1

run_with_progressFunction · 0.85

Calls 3

term_widthFunction · 0.85
render_rowFunction · 0.85
_wrapped_rowsFunction · 0.85

Tested by

no test coverage detected