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

Function term_width

cli/progress.py:85–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 return f" {marker} {m['name']:<{name_w}} {DIM}{tag:<{tier_w}}{RESET} {msg}"
84
85 def term_width() -> int:
86 return max(20, shutil.get_terminal_size((100, 24)).columns)
87
88 # Total visual rows occupied by the block at the previous draw.
89 drawn_rows = {"n": 0}

Callers 2

initial_drawFunction · 0.85
repaintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected