win32console
- URL
- http://rubyforge.org/projects/winconsole
- Author(s)
- Original Library by Gonzalo Garramuno, Gem by Justin Bailey
- Summary
- This gem packages Gonzalo Garramuno's Win32::Console project, and includes a compiled binary for speed. The Win32::Console project's home can be found at: http://rubyforge.org/projects/win32console The gem project can be found at http://rubyforge.org/p
Comments
win32console
(1.2.0)
is Working
for Daniel Holcik (Windows, over 2 years ago)
You might also want to add these lines to the beginning of "Win32/Console/ANSI.rb":
module ImmutableDupExtension def dup() self end end
class NilClass; include ImmutableDupExtension end
class FalseClass; include ImmutableDupExtension end
class TrueClass; include ImmutableDupExtension end
class Fixnum; include ImmutableDupExtension end
class Symbol; include ImmutableDupExtension endTo make sure "print" works with nil, true/false, Fixnums and Symbols.
win32console
(1.2.0)
is Working
for Daniel Holcik (Windows, over 2 years ago)
I found a way how to fix this on ruby-1.9.
You shouldn't use the dynamic library 'Console.so' and rather use the equivalent ruby code that comes with it.
First, download the 'Win32::Console' archive from rubyforge and install what you can manually.
Second, go to 'Console.rb' and comment out lines: 7, 13, 14, 16 and 23. This will prevent the library to load 'Console.so'.
Third, go to 'ANSI.rb' and comment out lines 325, 327, 329, 330, 332 and 333. That will remove a ruby-1.9-encoding-standards related error.
And now it should work. At least, it did the trick for me!
win32console
(1.2.0)
is Failing
for Joel (Windows, over 2 years ago)
Same issue for me as well. I thought this would have been fixed by now. Is there any plan to fix this or will the project be removed. I haven't seen any update by the author in quite a long time. Is the project abandoned?
win32console
(1.2.0)
is Failing
for Jure Srsen (Windows, over 2 years ago)
irb(main):002:0> require 'win32/console/ansi'
SyntaxError: C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/l
ib/win32/console/ANSI.rb:325: invalid multibyte char (US-ASCII)
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/win32/cons
ole/ANSI.rb:325: invalid multibyte char (US-ASCII)
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/win32/cons
ole/ANSI.rb:325: syntax error, unexpected $end, expecting ')'
s.tr!("ÇüéâäůćçłëŐőŹÄĆÉĹĺôöĽľŚśÖÜŤŁ×čü...
^
from (irb):2:in `require'
from (irb):2
from C:/Ruby19/bin/irb:12:in `<main>'
win32console
(1.2.0)
is Failing
for Jose Cortinas (Windows, over 2 years ago)
Same error as Arvicco. The issue has been brought up to the author on the RubyForge project forums.
win32console
(1.2.0)
is Failing
for Arvicco (Windows, over 2 years ago)
With Ruby 1.9.1 - gem installs, but does not work properly. Such as, running cucumber with --color options results in failure (uninstalling win32console restores normal output):
C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require': C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/Win32/Console/ANSI.rb:325: invalid multibyte char (US-ASCII) (SyntaxError)
C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/Win32/Console/ANSI.rb:325: invalid multibyte char (US-ASCII)
C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/Win32/Console/ANSI.rb:325: syntax error, unexpected $end, expecting ')'
s.tr!("АБВГДЕЖЗИЙКЛНОПРСТУФХЦЧШЩЪЫЭЮЯБ...
^
from C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
from C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/cucumber-0.3.103/lib/cucumber/formatter/ansicolor.rb:7:in `<top (required)>'

win32console (1.3.0beta2) is Working
for Elia Schito (Windows, over 2 years ago)