index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-04 15:13:06 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-04-04 15:13:06 +0200 |
commit | 81822e64443e4e43554ae4f891dfc8af79ea48d5 (patch) | |
tree | 55370260edf8b90070740a41053d1623a8a866be /archinstall/lib/general.py | |
parent | 2f6a71756a06b6feff3acdad3a3d8490e7504ab7 (diff) |
-rw-r--r-- | archinstall/lib/general.py | 10 |
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index ded2c5a3..41a83651 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -159,10 +159,16 @@ class sys_command():#Thread): 'exit_code': self.exit_code } - def peak(self, output): + def peak(self, output :str): + if type(output) == bytes: + try: + output = output.decode('UTF-8') + except UnicodeDecodeError: + return None + if self.peak_output: from .user_interaction import get_terminal_width - + # Move back to the beginning of the terminal sys.stdout.flush() sys.stdout.write("\033[%dG" % 0) |