diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-03-27 19:54:41 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-28 23:11:48 +0200 |
commit | 2a1a619eed67322399e943fac923701340bfc8cc (patch) | |
tree | 34d412589639eeccb587fd06993aa0c75558e78b /AK | |
parent | b3c18db46363968b9d3b98d1f7f99f8b017d9afa (diff) | |
download | serenity-2a1a619eed67322399e943fac923701340bfc8cc.zip |
AK: Display SourceLocation function name in color
It's much easier to spot the function name (which is what you often
expect) like this.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/SourceLocation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/SourceLocation.h b/AK/SourceLocation.h index 1fabd37869..1a90897b65 100644 --- a/AK/SourceLocation.h +++ b/AK/SourceLocation.h @@ -45,7 +45,7 @@ template<> struct AK::Formatter<AK::SourceLocation> : AK::Formatter<FormatString> { ErrorOr<void> format(FormatBuilder& builder, AK::SourceLocation location) { - return AK::Formatter<FormatString>::format(builder, "[{} @ {}:{}]", location.function_name(), location.filename(), location.line_number()); + return AK::Formatter<FormatString>::format(builder, "[\x1b[34m{}\x1b[0m @ {}:{}]", location.function_name(), location.filename(), location.line_number()); } }; |