[Rspec-devel] --colour : Windows complications

aslak hellesoy aslak.hellesoy at gmail.com
Fri Sep 8 09:25:26 EDT 2006


On 9/8/06, DeeJay <smartgpx at gmail.com> wrote:
>
>
> Actually, the code presently in trunk doesn't only 'not support' Windows
> users, but positively 'breaks' the screen presentation. [If --colour is
> given as an option, so the easy workaround is to leave it out!  :-) ]
>
> Like this -
>
>
> J:\TryBZR>spec  specs -c
>
> ............................
>
> Finished in 0.265 seconds
>
> ←[32m28 specifications, 0 failures←[0m
>
> [ Those " <-[#m " sequences are the ansi controls not being interpreted by
> Windows.]
>
>
>
> Trying to reproduce ansi-terminal functionality with win32console works OK
> with a simple 'puts "\e[32m" ', but breaks somewhere in rspec's Formatter
> and Reporter classes, because putting @output << "\e[32m"  in the
> formatter's dump methods does not have the desired effect
>

It looks like

STDOUT.puts
and
puts

Don't behave the same way with win32console . I'll work something out.

Aslak

> DeeJay
>
> _______________________________________________
> Rspec-devel mailing list
> Rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>
>


More information about the Rspec-devel mailing list