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

Detecting ANSI compatibility #553

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

Conversation

monte-monte
Copy link
Contributor

Added check for ANSI escape support. This should resolve possible edge cases.
For windows I am setting console mode to enable ANSI and if it fails, fall back to simple terminal.
https://learn.microsoft.com/en-us/windows/console/getconsolemode
Tested on win11 and win7. Would appreciate if you test it on win10 or 8 also.

@monte-monte
Copy link
Contributor Author

  • Need to find linux terminal that doesn't support ANSI escape chars to test.
  • Maybe this should be moved to a function in terminalhelp.h?

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