Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-02 00:21:15 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-02 00:21:15 +0200
commit8bbc26ca593e4dbf5b3eca01837a01c2509f1432 (patch)
tree0962a59ed2dc64f7e7d378cd5fbf45976bf15ccc
parent7b0863f2899812607f064c0b76c9347410302726 (diff)
Attempt to fix issue regarding broken output
Since pacman and some other commands these days write multiple lines and goes back and fourth, it's not reliable to say the "peaked" line is a single line. And if it's not, it will make the output look like garbage. So instead, we'll write any output - as is - and let the command deal with fancy printing.
-rw-r--r--archinstall/lib/general.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 3b62c891..9711382f 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -202,27 +202,6 @@ class SysCommandWorker:
except UnicodeDecodeError:
return False
- output = output.strip('\r\n ')
- if len(output) <= 0:
- return False
-
- from .user_interaction import get_terminal_width
-
- # Move back to the beginning of the terminal
- sys.stdout.flush()
- sys.stdout.write("\033[%dG" % 0)
- sys.stdout.flush()
-
- # Clear the line
- 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()
return True