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

Method begin_capture

rich/console.py:866–868  ·  view source on GitHub ↗

Begin capturing console output. Call :meth:`end_capture` to exit capture mode and return output.

(self)

Source from the content-addressed store, hash-verified

864 self._exit_buffer()
865
866 def begin_capture(self) -> None:
867 """Begin capturing console output. Call :meth:`end_capture` to exit capture mode and return output."""
868 self._enter_buffer()
869
870 def end_capture(self) -> str:
871 """End capture mode and return captured string.

Callers 15

test_expand_falseFunction · 0.95
test_vertical_centerFunction · 0.95
test_min_widthFunction · 0.95
test_no_columnsFunction · 0.95
test_decodeFunction · 0.95
test_justifyFunction · 0.95
test_render_escapeFunction · 0.95
test_render_single_nodeFunction · 0.95

Calls 1

_enter_bufferMethod · 0.95

Tested by 15

test_expand_falseFunction · 0.76
test_vertical_centerFunction · 0.76
test_min_widthFunction · 0.76
test_no_columnsFunction · 0.76
test_decodeFunction · 0.76
test_justifyFunction · 0.76
test_render_escapeFunction · 0.76
test_render_single_nodeFunction · 0.76