Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Issue #9 #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fixes Issue #9 #13

wants to merge 5 commits into from

Conversation

kathawala
Copy link

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

@kennethreitz
Copy link
Collaborator

resolve conflicts?

@MasterOdin
Copy link
Owner

MasterOdin commented Sep 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants