mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
Improve terminal colors on light-colored terminal backgrounds
This commit is contained in:
parent
14fe8add58
commit
f8381749c3
3 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ from .common import Common
|
||||||
|
|
||||||
def print_header(s):
|
def print_header(s):
|
||||||
click.echo("")
|
click.echo("")
|
||||||
click.echo(Style.BRIGHT + Fore.LIGHTWHITE_EX + s)
|
click.echo(Style.BRIGHT + s)
|
||||||
|
|
||||||
|
|
||||||
def exec_container(global_common, args):
|
def exec_container(global_common, args):
|
||||||
|
@ -22,7 +22,7 @@ def exec_container(global_common, args):
|
||||||
# Hack to add colors to the command executing
|
# Hack to add colors to the command executing
|
||||||
if line.startswith(b"> "):
|
if line.startswith(b"> "):
|
||||||
print(
|
print(
|
||||||
Fore.YELLOW + "> " + Fore.LIGHTCYAN_EX + line.decode()[2:],
|
Style.DIM + "> " + Style.NORMAL + Fore.CYAN + line.decode()[2:],
|
||||||
end="",
|
end="",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -441,7 +441,7 @@ class GlobalCommon(object):
|
||||||
def exec_dangerzone_container(self, args):
|
def exec_dangerzone_container(self, args):
|
||||||
args = [self.dz_container_path] + args
|
args = [self.dz_container_path] + args
|
||||||
args_str = " ".join(pipes.quote(s) for s in args)
|
args_str = " ".join(pipes.quote(s) for s in args)
|
||||||
print(Fore.YELLOW + "> " + Fore.CYAN + args_str)
|
print(Style.DIM + "> " + Style.NORMAL + Fore.CYAN + args_str)
|
||||||
|
|
||||||
# Execute dangerzone-container
|
# Execute dangerzone-container
|
||||||
return subprocess.Popen(
|
return subprocess.Popen(
|
||||||
|
|
|
@ -21,7 +21,7 @@ class TaskBase(QtCore.QThread):
|
||||||
|
|
||||||
if line.startswith(b"> "):
|
if line.startswith(b"> "):
|
||||||
print(
|
print(
|
||||||
Fore.YELLOW + "> " + Fore.LIGHTCYAN_EX + line.decode()[2:],
|
Style.DIM + "> " + Style.NORMAL + Fore.CYAN + line.decode()[2:],
|
||||||
end="",
|
end="",
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue