Esempio n. 1
0
 def enhance_colors_for_cmd_exe(self):
     """ Enhance colors when using cmd.exe on windows.
         When using the default style all blue and dark red colors
         are changed to CYAN and intense red.
     """
     env = builtins.__xonsh__.env
     # Ensure we are not using the new Windows Terminal, ConEmu or Visual Stuio Code
     if "WT_SESSION" in env or "CONEMUANSI" in env or "VSCODE_PID" in env:
         return
     if env.get("INTENSIFY_COLORS_ON_WIN", False):
         if win_ansi_support():
             newcolors = hardcode_colors_for_win10(self.styles)
         else:
             newcolors = intensify_colors_for_cmd_exe(self.styles)
         self.trap.update(newcolors)
Esempio n. 2
0
 def enhance_colors_for_cmd_exe(self):
     """ Enhance colors when using cmd.exe on windows.
         When using the default style all blue and dark red colors
         are changed to CYAN and intense red.
     """
     env = builtins.__xonsh__.env
     # Ensure we are not using ConEmu or Visual Stuio Code
     if "CONEMUANSI" in env or "VSCODE_PID" in env:
         return
     if env.get("INTENSIFY_COLORS_ON_WIN", False):
         if win_ansi_support():
             newcolors = hardcode_colors_for_win10(self.styles)
         else:
             newcolors = intensify_colors_for_cmd_exe(self.styles)
         self.trap.update(newcolors)