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 @@ -151,14 +151,16 @@ void gcc_message_handlert::print(
151
151
if (!function.empty ())
152
152
{
153
153
if (!file.empty ())
154
- dest+= id2string (file)+ " :" ;
154
+ dest += command ( 1 ) + id2string (file) + " :" + command ( 0 ); // bold
155
155
if (dest!=" " )
156
156
dest+=' ' ;
157
157
dest+=" In function '" +id2string (function)+" ':\n " ;
158
158
}
159
159
160
160
if (!line.empty ())
161
161
{
162
+ dest += command (1 ); // bold
163
+
162
164
if (!file.empty ())
163
165
dest+=id2string (file)+" :" ;
164
166
@@ -170,9 +172,11 @@ void gcc_message_handlert::print(
170
172
dest+=id2string (column)+" : " ;
171
173
172
174
if (level==messaget::M_ERROR)
173
- dest+= " error: " ;
175
+ dest += command ( 31 ) + " error: " ; // red
174
176
else if (level==messaget::M_WARNING)
175
- dest+=" warning: " ;
177
+ dest += command (95 ) + " warning: " ; // bright magenta
178
+
179
+ dest += command (0 ); // reset
176
180
}
177
181
178
182
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