Make bold

This commit is contained in:
Dimitris Zlatanidis 2023-01-06 22:47:23 +02:00
parent b977445124
commit 7d406aeebb
3 changed files with 9 additions and 3 deletions

View file

@ -20,8 +20,10 @@ class Downloader:
self.configs = Configs
self.colors = self.configs.colour
self.color = self.colors()
self.bold = self.color['bold']
self.green = self.color['green']
self.yellow = self.color['yellow']
self.byellow = f'{self.bold}{self.yellow}'
self.endc = self.color['endc']
self.progress = ProgressBar()
self.stderr = None
@ -52,7 +54,7 @@ class Downloader:
# Terminate process 2 if process 1 finished
if not p1.is_alive():
print(f'{self.endc}{self.yellow} Done{self.endc}', end='')
print(f'{self.endc}{self.byellow} Done{self.endc}', end='')
p2.terminate()
# Wait until process 2 finish

View file

@ -23,7 +23,9 @@ class RemovePackages:
self.configs = Configs
self.colors = self.configs.colour
self.color = self.colors()
self.bold = self.color['bold']
self.yellow = self.color['yellow']
self.byellow = f'{self.bold}{self.yellow}'
self.red = self.color['red']
self.endc = self.color['endc']
self.installed_packages = []
@ -93,7 +95,7 @@ class RemovePackages:
# Terminate process 2 if process 1 finished
if not p1.is_alive():
print(f'{self.endc}{self.yellow} Done{self.endc}', end='')
print(f'{self.endc}{self.byellow} Done{self.endc}', end='')
p2.terminate()
# Wait until process 2 finish

View file

@ -37,9 +37,11 @@ class Slackbuilds:
self.configs = Configs
self.colors = self.configs.colour
self.color = self.colors()
self.bold = self.color['bold']
self.cyan = self.color['cyan']
self.red = self.color['red']
self.yellow = self.color['yellow']
self.byellow = f'{self.bold}{self.yellow}'
self.endc = self.color['endc']
self.install_order = []
self.dependencies = []
@ -299,7 +301,7 @@ class Slackbuilds:
# Terminate process 2 if process 1 finished
if not p1.is_alive():
print(f'{self.endc}{self.yellow} Done{self.endc}', end='')
print(f'{self.endc}{self.byellow} Done{self.endc}', end='')
p2.terminate()
# Wait until process 2 finish