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

Method clear

rich/console.py:1146–1155  ·  view source on GitHub ↗

Clear the screen. Args: home (bool, optional): Also move the cursor to 'home' position. Defaults to True.

(self, home: bool = True)

Source from the content-addressed store, hash-verified

1144 self.print(NewLine(count))
1145
1146 def clear(self, home: bool = True) -> None:
1147 """Clear the screen.
1148
1149 Args:
1150 home (bool, optional): Also move the cursor to 'home' position. Defaults to True.
1151 """
1152 if home:
1153 self.control(Control.clear(), Control.home())
1154 else:
1155 self.control(Control.clear())
1156
1157 def status(
1158 self,

Callers 5

test_clearFunction · 0.95
test_clear_no_terminalFunction · 0.95
check_textMethod · 0.45
_write_bufferMethod · 0.45
export_svgMethod · 0.45

Calls 2

controlMethod · 0.95
homeMethod · 0.80

Tested by 2

test_clearFunction · 0.76
test_clear_no_terminalFunction · 0.76