diff --git a/lib/ansi/code.rb b/lib/ansi/code.rb index 51bfc9a..dcba73a 100644 --- a/lib/ansi/code.rb +++ b/lib/ansi/code.rb @@ -6,7 +6,7 @@ module ANSI # NOTE: This has no effect on methods that return ANSI codes. $ansi = true - if RUBY_PLATFORM =~ /(win32|w32)/ + if RUBY_VERSION < '2' && RUBY_PLATFORM =~ /(win32|w32)/ begin require 'Win32/Console/ANSI' rescue LoadError