mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
SCons: Refactor color.py
This commit is contained in:
parent
1ba856565d
commit
2b1f463de5
6 changed files with 111 additions and 90 deletions
|
@ -428,9 +428,9 @@ def use_windows_spawn_fix(self, platform=None):
|
|||
|
||||
|
||||
def no_verbose(env):
|
||||
from misc.utility.color import Ansi
|
||||
from misc.utility.color import Ansi, is_stdout_color
|
||||
|
||||
colors = [Ansi.BLUE, Ansi.BOLD, Ansi.REGULAR, Ansi.RESET]
|
||||
colors = [Ansi.BLUE, Ansi.BOLD, Ansi.REGULAR, Ansi.RESET] if is_stdout_color() else ["", "", "", ""]
|
||||
|
||||
# There is a space before "..." to ensure that source file names can be
|
||||
# Ctrl + clicked in the VS Code terminal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue