crayons icon indicating copy to clipboard operation
crayons copied to clipboard

Fixes Issue #9

Open kathawala opened this issue 6 years ago • 2 comments

Issue #9 shows that ANSI escape sequences aren't detected when coloring strings, which leads to a ColorString formatted with another ColorString to lose its color information at the end. This fix finds any ANSI escape sequences using re and works around them.

As a test case:

terminal shot showing formatted color strings nested successfully

kathawala avatar Oct 18 '17 19:10 kathawala

resolve conflicts?

kennethreitz avatar Feb 21 '19 11:02 kennethreitz

Looks like this causes an infinite hang on my machine on your text example in both 2.7 and 3.7. Will try and play around more with this and figure out what's going on and why it worked 2 years ago and not now.

MasterOdin avatar Sep 09 '19 10:09 MasterOdin