MCPcopy Index your code
hub / github.com/python/cpython / refresh

Method refresh

Lib/_pyrepl/reader.py:652–657  ·  view source on GitHub ↗

Recalculate and refresh the screen.

(self)

Source from the content-addressed store, hash-verified

650 self.refresh()
651
652 def refresh(self) -> None:
653 """Recalculate and refresh the screen."""
654 # this call sets up self.cxy, so call it first.
655 self.screen = self.calc_screen()
656 self.console.refresh(self.screen, self.cxy)
657 self.dirty = False
658
659 def do_cmd(self, cmd: tuple[str, list[str]]) -> None:
660 """`cmd` is a tuple of "event_name" and "event", which in the current

Callers 8

update_screenMethod · 0.95
do_cmdMethod · 0.95
handle1Method · 0.95
readlineMethod · 0.95
do_commandMethod · 0.45
editMethod · 0.45
test_editboxFunction · 0.45

Calls 1

calc_screenMethod · 0.95

Tested by 1

test_editboxFunction · 0.36