8000 Add color support for Hyper terminal . by azjezz · Pull Request #27794 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Add color support for Hyper terminal . #27794

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

Merged
merged 1 commit into from
Jul 3, 2018
Merged

Add color support for Hyper terminal . #27794

merged 1 commit into from
Jul 3, 2018

Conversation

azjezz
Copy link
Contributor
@azjezz azjezz commented Jul 1, 2018
Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

Added color support for Hyper terminal, also shade characters support for progress bar.

image

@nicolas-grekas
Copy link
Member

Interesting. We consider these as bug fixes so it should be fixed on 2.8.
I think there are more places in the code that do these kind of checks, can you update them all?
Could you also please send a PR to update https://github.com/symfony/polyfill/blob/master/src/Php72/Php72.php?
Thanks!

@azjezz
Copy link
Contributor Author
azjezz commented Jul 1, 2018

i have made 2 other PRs at symfony/thanks and symfony/polyfill.

@azjezz
Copy link
Contributor Author
azjezz commented Jul 1, 2018

@nicolas-grekas i think that's all, i have search the repository for similar code and i found these checks in Symfony\Component\VarDumper\Dumper\CliDumper and Symfony\Bridge\PhpUnit\DeprecationErrorHandler

@azjezz azjezz changed the title [Console] Add color support for Hyper terminal on windows. Add color support for Hyper terminal on windows. Jul 1, 2018
@azjezz azjezz changed the title Add color support for Hyper terminal on windows. Add color support for Hyper terminal . Jul 1, 2018
Copy link
Member
@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azjezz thanks! This is a nice first contribution to Symfony.

@fabpot fabpot changed the base branch from master to 2.8 July 3, 2018 07:11
@fabpot fabpot changed the base branch from 2.8 to master July 3, 2018 07:12
@fabpot fabpot changed the base branch from master to 2.8 July 3, 2018 07:19
@fabpot
Copy link
Member
fabpot commented Jul 3, 2018

Thank you @azjezz.

@fabpot fabpot merged commit 2ab7bcf into symfony:2.8 Jul 3, 2018
fabpot added a commit that referenced this pull request Jul 3, 2018
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #27794).

Discussion
----------

Add color support for Hyper terminal .

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

Added color support for [Hyper terminal](https://hyper.is), also shade characters support for progress bar.

![image](https://user-images.githubusercontent.com/29315886/42135797-6edb8492-7d50-11e8-968b-2dd19981dcdd.png)

Commits
-------

2ab7bcf Add color support for Hyper terminal .
fabpot added a commit to symfony/polyfill that referenced this pull request Jul 3, 2018
…00_support. (azjezz)

This PR was merged into the 1.8-dev branch.

Discussion
----------

Checks the enviroment for Hyper Termianl on sapi_windows_vt100_support.

see : [symfony/symfony#27794](symfony/symfony#27794).

Commits
-------

7ee2340 Update Php72.php
fabpot added a commit that referenced this pull request Dec 8, 2023
… (theofidry)

This PR was merged into the 5.4 branch.

Discussion
----------

[Console] Fix color support check on non-Windows platforms

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #45917
| License       | MIT

Currently checking the color support based on `ANSICON`, `ConEmuANSI=ON` or `TERM=xTerm` is done only for Widows. I could not find any reason as to why and it does not make much sense as it is. Especially if we consider that `TERM=xTerm` is a term check and we do another one (not Widows specific) which is `TERM_PROGRAM=Hyper`.

This potentially fixes #45917.

This also looks more in line with the intent (based on the title) of #27831 and #27794.

Commits
-------

285518d detect colors on not windows
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.

5 participants
0