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

Updated the color detection code from Symfony #138

Closed
wants to merge 1 commit into from
Closed

Updated the color detection code from Symfony #138

wants to merge 1 commit into from

Conversation

rvalitov
Copy link

Closes #119. The code is updated from Symfony

@rvalitov
Copy link
Author

Also closes #128.

@rvalitov
Copy link
Author

I think that PR #129 was also based on the Symfony code, but the contributor didn't give feedback for his/her PR.

@azjezz
Copy link
Contributor

azjezz commented Nov 22, 2018

no, CLImate doesn't check windows and linux in the same time, symfony does. that's why i broke it into 2 PRs #129 and #128

if ('Hyper' === getenv('TERM_PROGRAM')) {
return true;
}
if (\DIRECTORY_SEPARATOR === '\\') {
Copy link
Contributor

Choose a reason for hiding this comment

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

we already know that this is running on windows. so everything outside this condition ( except the Hyper terminal check ) should be removed.

@duncan3dc
Copy link
Member

@rvalitov It looks like you agree that @azjezz's version matches Symfony, so I'll go ahead and merge #129 and close this, thanks for your help 👍

@duncan3dc duncan3dc closed this Feb 10, 2019
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.

None yet

3 participants