Updated for process done

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-06 22:54:32 +03:00
parent 177053cec1
commit 5506745d1c

View file

@ -45,6 +45,7 @@ class ViewProcess(Configs):
time.sleep(0.1) time.sleep(0.1)
self.bar_process.terminate() self.bar_process.terminate()
self.bar_process.join() self.bar_process.join()
print(f'\b{self.bgreen}{self.ascii.done}{self.endc}', end='')
print('\x1b[?25h') print('\x1b[?25h')
else: else:
print(f'{self.bgreen}{self.ascii.done}{self.endc}') print(f'{self.bgreen}{self.ascii.done}{self.endc}')
@ -56,6 +57,7 @@ class ViewProcess(Configs):
time.sleep(0.1) time.sleep(0.1)
self.bar_process.terminate() self.bar_process.terminate()
self.bar_process.join() self.bar_process.join()
print(f'\b{self.bred}{self.ascii.failed}{self.endc}', end='')
print('\x1b[?25h') print('\x1b[?25h')
else: else:
print(f'{self.bred}{self.ascii.failed}{self.endc}') print(f'{self.bred}{self.ascii.failed}{self.endc}')