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

Fix #160 Add hNowSupportsANSI #164

Merged
merged 1 commit into from
Jan 13, 2024
Merged

Fix #160 Add hNowSupportsANSI #164

merged 1 commit into from
Jan 13, 2024

Conversation

mpilgrem
Copy link
Collaborator

@mpilgrem mpilgrem commented Dec 30, 2023

  • On Windows, the processing of 'ANSI' control characters in output is enabled by default in Windows Terminal but is not enabled by default in ConHost terminals. Additions have been made to allow support of users of ConHost terminals.
  • Add hNowSupportsANSI. On Unix, the function is equivalent to hSupportsANSI. On Windows, in Windows Terminal and ConHost terminals, the action can try to enable the processing of 'ANSI' control characters in output. This is done without reintroducing a dependency on the Win32 package.
  • In Windows Terminal and ConHost terminals, hSupportsANSI will yield False if the the processing of 'ANSI' control characters in output is not enabled. This is treated as a bug fix.
  • Deprecated hSupportsANSIWithoutEmulation is now consistent with hNowSupportsANSI.
  • Improvements to Haddock documentation.

Also, in Windows Terminal and ConHost terminals, `hSupportsANSI` will yield `False` if the the processing of \'ANSI\' control characters in output is not enabled.

Also makes deprecated `hSupportsANSIWithoutEmulation` consistent with `hNowSupportsANSI`.
@mpilgrem
Copy link
Collaborator Author

Tested locally on Windows 11: Windows Terminal, conhost.exe (launched from File Explorer) and mintty 3.6.4.

@mpilgrem mpilgrem merged commit 437f344 into master Jan 13, 2024
21 checks passed
@mpilgrem mpilgrem deleted the fix160 branch January 13, 2024 16:14
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