Skip to content

Commit

Permalink
NSLog prettyprint for Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
vkedwardli committed Nov 9, 2024
1 parent 95abc32 commit 4bc0e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/apple/emulator-osx/emulator-osx/osx-main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int darw_printf(const char* text, ...)

NSString* log = [NSString stringWithCString:temp encoding: NSUTF8StringEncoding];
NSDictionary<NSString *, NSString *>* env = [[NSProcessInfo processInfo] environment];
static bool isXcode = [env[@"OS_ACTIVITY_DT_MODE"] boolValue] || [env[@"COMMAND_MODE"] isEqualToString:@"unix2003"];
static bool isXcode = [env[@"OS_ACTIVITY_DT_MODE"] boolValue] || [env[@"COMMAND_MODE"] isEqualToString:@"unix2003"] || [env[@"TERM"] isEqualToString:@"dumb"];

if (isXcode) // Xcode console does not support colors
{
Expand Down

0 comments on commit 4bc0e1e

Please sign in to comment.