Skip to content

Check for Hyper terminal on all operating systems. #27831

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 4, 2018
Merged

Check for Hyper terminal on all operating systems. #27831

merged 1 commit into from
Jul 4, 2018

Conversation

azjezz
Copy link
Contributor

@azjezz azjezz commented Jul 3, 2018

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

return true if the terminal is Hyper.is on all operating systems not limited to windows.

@azjezz
Copy link
Contributor Author

azjezz commented Jul 3, 2018

@fabpot 👍

@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Jul 3, 2018
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

👍 once fabbot happy

@@ -225,14 +225,17 @@ private static function hasColorSupport()
if (!defined('STDOUT')) {
return false;
}


Copy link
Member

Choose a reason for hiding this comment

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

extra spaces here, blank line should be unchanged. See fabbot patch in the CI

if ('Hyper' === getenv('TERM_PROGRAM')) {
return true;
}

Copy link
Member

Choose a reason for hiding this comment

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

same

@azjezz
Copy link
Contributor Author

azjezz commented Jul 4, 2018

@chalasr 👍

@nicolas-grekas
Copy link
Member

Thank you @azjezz.

@nicolas-grekas nicolas-grekas merged commit 196e708 into symfony:2.8 Jul 4, 2018
nicolas-grekas added a commit that referenced this pull request Jul 4, 2018
This PR was squashed before being merged into the 2.8 branch (closes #27831).

Discussion
----------

 Check for Hyper terminal on all operating systems.

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

return true if the terminal is Hyper.is on all operating systems not limited to windows.

Commits
-------

196e708  Check for Hyper terminal on all operating systems.
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.

4 participants