File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -154,14 +154,16 @@ void gcc_message_handlert::print(
154
154
if (!function.empty ())
155
155
{
156
156
if (!file.empty ())
157
- dest+= id2string (file)+ " :" ;
157
+ dest += command ( 1 ) + id2string (file) + " :" + command ( 0 ); // bold
158
158
if (dest!=" " )
159
159
dest+=' ' ;
160
160
dest+=" In function '" +id2string (function)+" ':\n " ;
161
161
}
162
162
163
163
if (!line.empty ())
164
164
{
165
+ dest += command (1 ); // bold
166
+
165
167
if (!file.empty ())
166
168
dest+=id2string (file)+" :" ;
167
169
@@ -173,9 +175,11 @@ void gcc_message_handlert::print(
173
175
dest+=id2string (column)+" : " ;
174
176
175
177
if (level==messaget::M_ERROR)
176
- dest+= " error: " ;
178
+ dest += command ( 31 ) + " error: " ; // red
177
179
else if (level==messaget::M_WARNING)
178
- dest+=" warning: " ;
180
+ dest += command (95 ) + " warning: " ; // bright magenta
181
+
182
+ dest += command (0 ); // reset
179
183
}
180
184
181
185
dest+=message;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class console_message_handlert : public message_handlert
54
54
bool use_SGR;
55
55
};
56
56
57
- class gcc_message_handlert : public message_handlert
57
+ class gcc_message_handlert : public console_message_handlert
58
58
{
59
59
public:
60
60
// aims to imitate the messages gcc prints
You can’t perform that action at this time.
0 commit comments