##// END OF EJS Templates
Set more tolerable default colors for ANSI color codes.
epatters -
Show More
@@ -141,15 +141,15 b' class QtAnsiCodeProcessor(AnsiCodeProcessor):'
141 141 """
142 142
143 143 # A map from color codes to RGB colors.
144 ansi_colors = ( # Normal, Bright/Light
145 ('#000000', '#7f7f7f'), # 0: black
146 ('#cd0000', '#ff0000'), # 1: red
147 ('#00cd00', '#00ff00'), # 2: green
148 ('#cdcd00', '#ffff00'), # 3: yellow
149 ('#0000ee', '#0000ff'), # 4: blue
150 ('#cd00cd', '#ff00ff'), # 5: magenta
151 ('#00cdcd', '#00ffff'), # 6: cyan
152 ('#e5e5e5', '#ffffff')) # 7: white
144 ansi_colors = (# Normal, Bright/Light ANSI color code
145 ('black', 'grey'), # 0: black
146 ('darkred', 'red'), # 1: red
147 ('darkgreen', 'green'), # 2: green
148 ('gold', 'yellow'), # 3: yellow
149 ('darkblue', 'blue'), # 4: blue
150 ('darkviolet', 'magenta'), # 5: magenta
151 ('steelblue', 'cyan'), # 6: cyan
152 ('grey', 'white')) # 7: white
153 153
154 154 def get_format(self):
155 155 """ Returns a QTextCharFormat that encodes the current style attributes.
General Comments 0
You need to be logged in to leave comments. Login now