Skip to content

Commit

Permalink
chore: better line clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed Jul 24, 2024
1 parent e336f7f commit 44f4ab5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/oculus/easy_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class NoColor:
loglevel = int(config['General']['log_level'])

def overwrite_previous_line():
# Line up then clear only yields a not so pretty result while waiting for the next output
# Therefore, line up, erase with new line, then line up again for next output
print(_LINE_UP, end=_LINE_CLEAR)
print()
print(_LINE_UP, end=_LINE_CLEAR)

def info(message:str):
Expand Down

0 comments on commit 44f4ab5

Please sign in to comment.