the Color code be copied when copy string from xcode console
I found there are some [fg204,121,32; be copied when I copy the strings from xcode console.
I think it is the color code which some invisible strings.
How to remove them when I copy?
Or better yet, a log viewer that interprets them would be more useful so that you can more easily parse the results outside of Xcode.
@sdwornik +1. It would cool to add support for coloring .log files somewhere... I created a stupid workaround - an xcode project (command line tool) that reads log file and prints each line with NSLog, as a result, you have colored readable log file in your xcode console.
Here is a main.m file https://gist.github.com/DanSkeel/a173ca5bc17c3846cfdb
Hit the same annoying issue when I need to cut-n-paste from console to find. Looking at the source code for XCodeColors it appears that would be possible to colourise the text and remove the colour codes. But I'm not sure.
Maybe also using some standard for the clipboard, html or so?