# HG changeset patch # User Zachary T Welch zach@mandolincreekfarm.com # Fake Node ID 31b8fc9d4465045b03a54f061b3cfb7906eb4c9a
Add newline at end of console status (#2343)
When downloading/uploading on the console, a pretty status bar is printed on a single line. At the end of the transfer, a newline needs to be added, or subsequent output will appear on the same line as the status bar.
diff --git a/chirp/chirp_common.py b/chirp/chirp_common.py index 725612b..b42859a 100644 --- a/chirp/chirp_common.py +++ b/chirp/chirp_common.py @@ -659,7 +659,10 @@ def console_status(status): if not logger.is_visible(logging.WARN): return import sys + import os sys.stdout.write("\r%s" % status) + if status.cur == status.max: + sys.stdout.write(os.linesep)
class RadioPrompts: