XcodeColors icon indicating copy to clipboard operation
XcodeColors copied to clipboard

the Color code be copied when copy string from xcode console

Open Whirlwind opened this issue 10 years ago • 4 comments

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?

Whirlwind avatar Mar 30 '15 10:03 Whirlwind

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 avatar May 12 '15 12:05 sdwornik

@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

DanSkeel avatar Jun 15 '15 16:06 DanSkeel

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.

drekka avatar Aug 12 '15 00:08 drekka

Maybe also using some standard for the clipboard, html or so?

ivnsch avatar Sep 15 '16 09:09 ivnsch