lair.utils.updating_print#
- lair.utils.updating_print(msg)[source]#
Print msg over the current line (a carriage return, no newline).
See also
printStarts a new line each time.
Examples
Each call returns to the start of the line, so a terminal shows only the last message:
>>> from lair.utils import updating_print >>> for i in range(3): ... updating_print(f"file {i + 1} of 3")