Clear screen before printing abort warning

* Otherwise the "Abort" string is in the middle of the ddrescue output
* Also added secondary return code to be treated as a user abort
This commit is contained in:
2Shirt 2018-07-19 00:45:04 -06:00
parent 016f87b76c
commit 5f4598814a
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -750,7 +750,8 @@ def run_ddrescue(source, dest, settings):
# Was ddrescue aborted?
return_code = ddrescue_proc.poll()
if return_code is None:
if return_code is None or return_code is 130:
clear_screen()
print_warning('Aborted')
mark_pass_incomplete(source)
break