Updated for process print line

This commit is contained in:
Dimitris Zlatanidis 2024-04-03 18:23:03 +03:00
parent b15137098b
commit 729f57c9c8

View file

@ -68,11 +68,11 @@ class MultiProcess(Configs):
if not process_1.is_alive(): if not process_1.is_alive():
process_2.terminate() process_2.terminate()
if process_1.exitcode != 0: if process_1.exitcode != 0:
print(f"\r{'':>2}{self.bred}{self.ascii.bullet}{self.endc} {filename} {failed}{' ' * 17}", end='\r') print(f"\r{'':>2}{self.bred}{self.ascii.bullet}{self.endc} {filename} {failed}{' ' * 17}", end='')
elif installed: elif installed:
print(f"\r{'':>2}{self.bred}{self.ascii.bullet}{self.endc} {filename} {skip}{' ' * 17}", end='\r') print(f"\r{'':>2}{self.bred}{self.ascii.bullet}{self.endc} {filename} {skip}{' ' * 17}", end='')
else: else:
print(f"\r{'':>2}{self.bgreen}{self.ascii.bullet}{self.endc} {filename} {done}{' ' * 17}", end='\r') print(f"\r{'':>2}{self.bgreen}{self.ascii.bullet}{self.endc} {filename} {done}{' ' * 17}", end='')
# Restore the terminal cursor # Restore the terminal cursor
print('\x1b[?25h', self.endc) print('\x1b[?25h', self.endc)