Removed debugging, added an additional 'move back to beginning' and print the peak again. Added this to any pacstrap call.

This commit is contained in:
Anton Hvornum 2021-04-04 15:28:32 +02:00
parent 918bc95edf
commit 0dcb4da799
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 5 additions and 3 deletions

View File

@ -170,9 +170,6 @@ class sys_command():#Thread):
if len(output) <= 0:
return None
print([output])
return None
if self.peak_output:
from .user_interaction import get_terminal_width
@ -185,6 +182,11 @@ class sys_command():#Thread):
sys.stdout.write(" " * get_terminal_width())
sys.stdout.flush()
# Move back to the beginning again
sys.stdout.flush()
sys.stdout.write("\033[%dG" % 0)
sys.stdout.flush()
# And print the new output we're peaking on:
sys.stdout.write(output)
sys.stdout.flush()