-
Notifications
You must be signed in to change notification settings - Fork 180
Closed
Description
I've noticed that the progress bar sometimes blinks when clearing. I think it's caused by this line in WritelnMixin:
print('\r\x1b[K', end='', file=self.file)
This control sequence introducer \x1b[K is supposed to clear the characters to the right of the cursor, while \r returns the cursor to the left.
At least in my case it is enough to use \r without clearing anything. The characters will get overridden. Changing the line to print('\r', end='', file=self.file) and I haven't noticed any side effects yet. But maybe I'm missing something obvious here?
So my suggestion would be to either simply use \r for "clearing" the line, or to at least let the user customize this via some parameter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

