Use the repeat escape code for progress bar rendering
This commit is contained in:
@@ -114,6 +114,11 @@ def without_line_wrap(write: Callable[[str], None]) -> Generator[None, None, Non
|
||||
write(set_line_wrapping(True))
|
||||
|
||||
|
||||
@cmd
|
||||
def repeat(char: str, count: int) -> str:
|
||||
return f'{char}\x1b[{abs(count)}b'
|
||||
|
||||
|
||||
@cmd
|
||||
def set_cursor_visible(yes_or_no: bool) -> str:
|
||||
return set_mode(Mode.DECTCEM) if yes_or_no else reset_mode(Mode.DECTCEM)
|
||||
|
||||
Reference in New Issue
Block a user