Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
FullteaR committed Jan 4, 2025
1 parent 84652f7 commit 6c632aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lib/_pyrepl/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,14 @@ def refresh(self) -> None:
"""Recalculate and refresh the screen."""
if self.in_bracketed_paste and self.buffer and not self.buffer[-1] == "\n":
return

print("self.console = ", self.console)
print("self.buffer = ", self.buffer)
# this call sets up self.cxy, so call it first.
self.screen = self.calc_screen()
print("self.screen = ", self.screen)
print("self.cxy = ", self.cxy)
self.console.refresh(self.screen, self.cxy)
print("self.console.refresh(self.screen, self.cxy) done")
self.dirty = False

def do_cmd(self, cmd: tuple[str, list[str]]) -> None:
Expand Down Expand Up @@ -723,7 +727,6 @@ def do_cmd(self, cmd: tuple[str, list[str]]) -> None:
self.last_command = command_type

self.finished = bool(command.finish)
print("self.finished = ", self.finished)
if self.finished:
self.console.finish()
self.finish()
Expand Down

0 comments on commit 6c632aa

Please sign in to comment.