fix: RollingLogger move_back method ignoring amount parameter (#10874) (#10875)

Co-authored-by: shikaixuan <shikaixuan@baidu.com>
This commit is contained in:
caocao-sys 2025-10-04 04:49:33 +08:00 committed by GitHub
parent 025ac7672f
commit 408f8aa50f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,7 +217,7 @@ class RollingLogger:
r"""'\033[F' moves the cursor up one line."""
if amount == -1:
amount = self.max_lines
self._write('\033[F' * (self.max_lines))
self._write('\033[F' * amount)
self._flush()
def replace_current_line(self, line: str = '') -> None: