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

Fix color support for Windows #1744

Merged
merged 1 commit into from Aug 18, 2014
Merged

Fix color support for Windows #1744

merged 1 commit into from Aug 18, 2014

Conversation

tyabe
Copy link
Contributor

@tyabe tyabe commented Aug 18, 2014

We don't need win32console when working with Ruby 2.0 or later.
Because Ruby 2.0(or later) on Windows supports ANSI escape sequences.
Ref: https://bugs.ruby-lang.org/issues/6418

We don't need win32console when working with Ruby 2.0 or later.
Because Ruby 2.0(or later) on Windows supports ANSI escape sequences.
Ref: https://bugs.ruby-lang.org/issues/6418
# If you want colorize on Windows with Ruby 1.9, please use ansicon:
# https://github.com/adoxa/ansicon
# Other ways, add `gem 'win32console'` to your Gemfile.
if RUBY_PLATFORM =~ /mswin|mingw/ && RUBY_VERSION < '2.0' && ENV['ANSICON'].nil?
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this changing RUBY_PLATFORM =~ /mswin|mingw/ on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To support mingw or VC++ compiled Ruby on both 32 and 64 bit Windows platforms.

@namusyaka
Copy link
Contributor

Okay, thanks!

namusyaka added a commit that referenced this pull request Aug 18, 2014
Fix color support for Windows
@namusyaka namusyaka merged commit 9125575 into padrino:master Aug 18, 2014
@tyabe tyabe deleted the fix_colorize branch August 20, 2014 09:39
@namusyaka namusyaka added this to the 0.12.4 milestone Aug 21, 2014
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

2 participants