Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Detect Mintty for color support on Windows #15915

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

Closed
wants to merge 1 commit into from

Conversation

stof
Copy link
Member

@stof stof commented Sep 26, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR symfony/symfony-docs#5726

Mintty is now the default terminal in GitBash, and it supports ANSI colors without the need of ANSICON (it even supports 256 colors rather than the 16 colors supported by ANSICON).

I submitted it to 2.8 as it can be considered as a new feature. But it should not be hard to merge it in other branches if we decide to consider it as a bugfix (it just needs to be split because VarDumper does not exist in 2.3)

Mintty is now the default terminal in GitBash, and it supports ANSI
colors without the need of ANSICON (it even supports 256 colors rather
than the 16 colors supported by ANSICON).
@stof
Copy link
Member Author

stof commented Sep 26, 2015

Note that Mintty is used in Cygwin, so this would mean that Cygwin users get colored output for free now, without the need to use a second tool handling colors just to make the color support detected (or to pass --ansi explicitly all the time)

@fabpot
Copy link
Member

fabpot commented Sep 27, 2015

Sounds like a bug to me, should be merged in 2.3 instead.

@xabbuh
Copy link
Member

xabbuh commented Sep 27, 2015

👍 (also to merge this into the 2.3 branch)

@xabbuh
Copy link
Member

xabbuh commented Sep 27, 2015

Status: Reviewed

@fabpot
Copy link
Member

fabpot commented Sep 27, 2015

Thank you @stof.

@fabpot fabpot closed this in 4a89355 Sep 27, 2015
@stof stof deleted the detect_mintty_colors branch September 27, 2015 13:09
xabbuh added a commit to symfony/symfony-docs that referenced this pull request Oct 3, 2015
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #5726).

Discussion
----------

Document the support of Mintty for colors

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes symfony/symfony#15915
| Applies to    | 2.8+ (or 2.3+ depending on where it gets merged)
| Fixed tickets | n/a

Commits
-------

d8d4345 Document the support of Mintty for colors
This was referenced Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants