Skip to content

Conversation

@trulede
Copy link
Contributor

@trulede trulede commented Dec 12, 2025

Enable ANSI escape code handling on windows consoles.

fixes #2076

This sets the windows terminal so that it handles ANSI codes (esp color). Under some circumstances (not known) a windows console may be in a mode where it does not process ANSI codes, as a result task output (color=true or false) will show escape sequences:

C:\Users\trule\Desktop>task
←[31mtask: No Taskfile found at ""
←[0m

This PR pushes the terminal into the correct mode (ENABLE_VIRTUAL_TERMINAL_PROCESSING).

@trulede trulede mentioned this pull request Dec 12, 2025
@trulede trulede marked this pull request as ready for review December 15, 2025 22:23
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.

Coloring on windows.

1 participant