MCPcopy
hub / github.com/Textualize/rich / line

Method line

rich/console.py:1136–1144  ·  view source on GitHub ↗

Write new line(s). Args: count (int, optional): Number of new lines. Defaults to 1.

(self, count: int = 1)

Source from the content-addressed store, hash-verified

1134 return PagerContext(self, pager=pager, styles=styles, links=links)
1135
1136 def line(self, count: int = 1) -> None:
1137 """Write new line(s).
1138
1139 Args:
1140 count (int, optional): Number of new lines. Defaults to 1.
1141 """
1142
1143 assert count >= 0, "count must be >= 0"
1144 self.print(NewLine(count))
1145
1146 def clear(self, home: bool = True) -> None:
1147 """Clear the screen.

Callers 15

test_lineFunction · 0.45
test_segments_renderableFunction · 0.45
__rich_console__Method · 0.45
__rich_console__Method · 0.45
__rich_console__Method · 0.45
__rich_console__Method · 0.45
printMethod · 0.45
_ipy_display_hookFunction · 0.45
_renderMethod · 0.45
__rich_console__Method · 0.45
stopMethod · 0.45
__rich_console__Method · 0.45

Calls 2

printMethod · 0.95
NewLineClass · 0.85

Tested by 2

test_lineFunction · 0.36
test_segments_renderableFunction · 0.36