Skip to content

Commit dcfc78c

Browse files
committed
try to clear screen more properly
1 parent d39ca78 commit dcfc78c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bapctools/verdicts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ def _clear(self, *, force: bool = True) -> None:
463463
)
464464

465465
eprint(
466-
f"\033[{lines - 1}A\r",
467-
end="",
466+
"\033[K\033[A" * (lines - 1),
467+
end="\r",
468468
flush=True,
469469
)
470470

0 commit comments

Comments
 (0)