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

Support background 256 colors. #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaz-utashiro
Copy link

Current version does not handle 6x6x6 216 colors for background starting with "\e[48;5;".
I also need to handle both foreground and background setting in the same sequence, but it is beyond quick work.

This is my very first JavaScript program. Please discard and rewrite if not appropriate.

mattgodbolt added a commit to compiler-explorer/compiler-explorer that referenced this pull request Apr 1, 2021
* Rephrases a regex with a suggestion from @cpplearner to prevent
  catastrophic backtracking.
* Cherry picks in some things from rburns/ansi-to-html#84
  to support 256-colour better.
* Adds some very simple tests.

Fixes #1666.
Fixes #2315
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