I'm trying to print colored text in the console in Xcode with XcodeColors (works on Xcode 8 when unsigned) using NSLog.
This doesn't work:
NSLog("\u{001b}[fg255,0,0;Test\u{001b}[;")
I get \^[[fg255,0,0;Test\^[[;
in the console.
However, these do work:
print("\u{001b}[fg255,0,0;Test\u{001b}[;")
NSLog("\u{001b}[fg255,0,0;Test\u{001b}[;")
i.e. using print or adding a unicode symbol to the string causes it to work. How can I get this working without doing either of those?