MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / clear

Method clear

cmd2/utils.py:462–464  ·  view source on GitHub ↗

Clear the internal contents.

(self)

Source from the content-addressed store, hash-verified

460 return result
461
462 def clear(self) -> None:
463 """Clear the internal contents."""
464 self.buffer.byte_buf.clear()
465
466 def isatty(self) -> bool:
467 """StdSim only considered an interactive stream if `echo` is True and `inner_stream` is a tty."""

Callers 15

readMethod · 0.95
readbytesMethod · 0.95
set_themeFunction · 0.45
_process_alertsMethod · 0.45
_cmdloopMethod · 0.45
_alias_deleteMethod · 0.45
_macro_deleteMethod · 0.45
do_historyMethod · 0.45
test_set_no_settablesFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_set_no_settablesFunction · 0.36
test_stdsim_clearFunction · 0.36