Commit 3ee43e17 authored by Paul Wise's avatar Paul Wise Committed by Chris Lamb

Erase the progress bar line when diffoscope is interrupted

Otherwise cruft is left on the terminal after exit.
parent 9c0cfdf5
......@@ -459,6 +459,8 @@ def main(args=None):
post_parse(parsed_args)
sys.exit(run_diffoscope(parsed_args))
except KeyboardInterrupt:
if log_handler:
log_handler.progressbar.bar.erase_line()
logger.info('Keyboard Interrupt')
sys.exit(2)
except BrokenPipeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment