Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-04 15:28:32 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-04 15:28:32 +0200
commit0dcb4da799ae3beba807bfe9bfb56e97b6d64dc8 (patch)
treee396db4dd82fddb399f9db50e861dac99bffaf36 /archinstall
parent918bc95edfcdc18206c8132611a4d7e7473368bc (diff)
Removed debugging, added an additional 'move back to beginning' and print the peak again. Added this to any pacstrap call.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/general.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index d47b390a..5b1b3c2a 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -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()