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:
parent
016f87b76c
commit
5f4598814a
1 changed files with 2 additions and 1 deletions
|
|
@ -750,7 +750,8 @@ def run_ddrescue(source, dest, settings):
|
||||||
|
|
||||||
# Was ddrescue aborted?
|
# Was ddrescue aborted?
|
||||||
return_code = ddrescue_proc.poll()
|
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')
|
print_warning('Aborted')
|
||||||
mark_pass_incomplete(source)
|
mark_pass_incomplete(source)
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue