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

Handle multiple codes in sequences #35

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

Conversation

jacklul
Copy link

@jacklul jacklul commented Feb 26, 2025

This PR adds support for handling multiple sequences of ansi codes - preserving the styling until reset code is found.

This addresses #17

Current:

sequences current

With this PR:

sequences pr

Like in my other PR, PHPUnit passes once the test class is fixed.

TODO:

ANSI codes 22-29 should disable appropriate styling, currently it will not work because of in_array checks on 1-9, might need to remove values directly in tokenize or rewrite the styling code into something else
I have an idea how to approach this, will update on that soon
Done

@jacklul jacklul force-pushed the nested-styling branch 3 times, most recently from 3176332 to e2c01b6 Compare February 27, 2025 16:59
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.

1 participant