MCPcopy Index your code
hub / github.com/RustPython/RustPython / refresh

Method refresh

Lib/_pyrepl/reader.py:686–694  ·  view source on GitHub ↗

Recalculate and refresh the screen.

(self)

Source from the content-addressed store, hash-verified

684 self.refresh()
685
686 def refresh(self) -> None:
687 """Recalculate and refresh the screen."""
688 if self.in_bracketed_paste and self.buffer and not self.buffer[-1] == "\n":
689 return
690
691 # this call sets up self.cxy, so call it first.
692 self.screen = self.calc_screen()
693 self.console.refresh(self.screen, self.cxy)
694 self.dirty = False
695
696 def do_cmd(self, cmd: tuple[str, list[str]]) -> None:
697 """`cmd` is a tuple of "event_name" and "event", which in the current

Callers 5

update_screenMethod · 0.95
do_cmdMethod · 0.95
handle1Method · 0.95
readlineMethod · 0.95

Calls 1

calc_screenMethod · 0.95

Tested by

no test coverage detected