David Chelimsky
2009-Apr-05 16:23 UTC
[rspec-users] Problem with colorized output in cygwin on Vista (was: RSpec Formats with Strange Characters)
Changing the name of this to hopefully catch the eye of other Vista/cygwin/rspec users. On Sun, Apr 5, 2009 at 9:45 AM, Brandon Olivares <programmer2188 at gmail.com> wrote:> > >> -----Original Message----- >> From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- >> bounces at rubyforge.org] On Behalf Of aslak hellesoy >> Sent: Sunday, April 05, 2009 6:50 AM >> To: rspec-users >> Subject: Re: [rspec-users] RSpec Formats with Strange Characters >> >> >> Please describe your environment. OS, various versions etc. >> > > Ruby 1.8.7, RSpec 1.2.2, Cygwin on Windows Vista.Those characters are for coloring the output. I''m running XP in Parallels w/ ruby 1.8.7 and cygwin and I get colored output rather than seeing those characters. I''m guessing Vista is different :) Anybody else running Vista that knows how to get this to work?> > Thanks, > Brandon > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Bernie
2009-Apr-05 17:51 UTC
[rspec-users] Problem with colorized output in cygwin on Vista (was: RSpec Formats with Strange Characters)
Brandon, This was a tough one, although I still don''t have color on autospec (only have color when running specs manually ), AND I forgot exactly how the problem was solved, but hopefully this will get you in the right direction. 1. here are two gems that may help: gem install term-ansicolor gem install win32console and then for some reason I aded the following to my /cygdrive/c/ Users/<myusername>/irbrc file (I''m not sure if this is necessary for running specs, but you may want to try it). require ''win32console'' 2. finally installing and using the RXVT shell instead may have solved the problem (again, I compleletely forgot) You can find it in the "Shells" section of the CYGWIN installer. Here are the three checks I used: rxvt: VT102... rxvt-unicode-X: An improved... rxvt-unicode-common: An improved.... 3. If you''re doing a lot of work on IRB, you may want to also install Wirble and add a few more lines to your irbrc: require ''wirble'' Wirble.init Wirble.colorize Wellp, hope this at least got you in the right direction...if you find out how to colorize autospec, could you let me know? Bernie On Apr 5, 12:23?pm, David Chelimsky <dchelim... at gmail.com> wrote:> Changing the name of this to hopefully catch the eye of other > Vista/cygwin/rspec users. > > On Sun, Apr 5, 2009 at 9:45 AM, Brandon Olivares > > <programmer2... at gmail.com> wrote: > > >> -----Original Message----- > >> From: rspec-users-boun... at rubyforge.org [mailto:rspec-users- > >> boun... at rubyforge.org] On Behalf Of aslak hellesoy > >> Sent: Sunday, April 05, 2009 6:50 AM > >> To: rspec-users > >> Subject: Re: [rspec-users] RSpec Formats with Strange Characters > > >> Please describe your environment. OS, various versions etc. > > > Ruby 1.8.7, RSpec 1.2.2, Cygwin on Windows Vista. > > Those characters are for coloring the output. I''m running XP in > Parallels w/ ruby 1.8.7 and cygwin and I get colored output rather > than seeing those characters. I''m guessing Vista is different :) > > Anybody else running Vista that knows how to get this to work? > > > > > Thanks, > > Brandon > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
Brandon Olivares
2009-Apr-05 17:58 UTC
[rspec-users] Problem with colorized output in cygwin on Vista (was: RSpec Formats with Strange Characters)
Hi, Well the output on the console works fine, it''s when it is output to a text file when I see those characters. Brandon> -----Original Message----- > From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- > bounces at rubyforge.org] On Behalf Of David Chelimsky > Sent: Sunday, April 05, 2009 12:24 PM > To: rspec-users > Subject: [rspec-users] Problem with colorized output in cygwin on Vista > (was: RSpec Formats with Strange Characters) > > Changing the name of this to hopefully catch the eye of other > Vista/cygwin/rspec users. > > On Sun, Apr 5, 2009 at 9:45 AM, Brandon Olivares > <programmer2188 at gmail.com> wrote: > > > > > >> -----Original Message----- > >> From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- > >> bounces at rubyforge.org] On Behalf Of aslak hellesoy > >> Sent: Sunday, April 05, 2009 6:50 AM > >> To: rspec-users > >> Subject: Re: [rspec-users] RSpec Formats with Strange Characters > >> > >> > >> Please describe your environment. OS, various versions etc. > >> > > > > Ruby 1.8.7, RSpec 1.2.2, Cygwin on Windows Vista. > > Those characters are for coloring the output. I''m running XP in > Parallels w/ ruby 1.8.7 and cygwin and I get colored output rather > than seeing those characters. I''m guessing Vista is different :) > > Anybody else running Vista that knows how to get this to work? > > > > > Thanks, > > Brandon > > > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2009-Apr-05 20:20 UTC
[rspec-users] Problem with colorized output in cygwin on Vista (was: RSpec Formats with Strange Characters)
On Sun, Apr 5, 2009 at 12:58 PM, Brandon Olivares <programmer2188 at gmail.com> wrote:> Hi, > > Well the output on the console works fine, it''s when it is output to a text > file when I see those characters.Ah - well, in theory that shouldn''t happen, because the colorizing checks to see if it''s printing to a console or not. So it sounds like there is a bug related to your specific environment. Would you please report that to http://rspec.lighthouseapp.com? In the mean time, as a workaround, just exclude the --color option and you should be fine.> > Brandon > >> -----Original Message----- >> From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- >> bounces at rubyforge.org] On Behalf Of David Chelimsky >> Sent: Sunday, April 05, 2009 12:24 PM >> To: rspec-users >> Subject: [rspec-users] Problem with colorized output in cygwin on Vista >> (was: RSpec Formats with Strange Characters) >> >> Changing the name of this to hopefully catch the eye of other >> Vista/cygwin/rspec users. >> >> On Sun, Apr 5, 2009 at 9:45 AM, Brandon Olivares >> <programmer2188 at gmail.com> wrote: >> > >> > >> >> -----Original Message----- >> >> From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- >> >> bounces at rubyforge.org] On Behalf Of aslak hellesoy >> >> Sent: Sunday, April 05, 2009 6:50 AM >> >> To: rspec-users >> >> Subject: Re: [rspec-users] RSpec Formats with Strange Characters >> >> >> >> >> >> Please describe your environment. OS, various versions etc. >> >> >> > >> > Ruby 1.8.7, RSpec 1.2.2, Cygwin on Windows Vista. >> >> Those characters are for coloring the output. I''m running XP in >> Parallels w/ ruby 1.8.7 and cygwin and I get colored output rather >> than seeing those characters. I''m guessing Vista is different :) >> >> Anybody else running Vista that knows how to get this to work? >> >> > >> > Thanks, >> > Brandon >> > >> > >> > _______________________________________________ >> > rspec-users mailing list >> > rspec-users at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/rspec-users >> > >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Brandon Olivares
2009-Apr-06 01:35 UTC
[rspec-users] Problem with colorized output in cygwin on Vista (was: RSpec Formats with Strange Characters)
Hi, Thanks. Installing term-ansicolor worked. The console still shows the colors and the text files do not have strange characters. Brandon> -----Original Message----- > From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- > bounces at rubyforge.org] On Behalf Of Bernie > Sent: Sunday, April 05, 2009 1:52 PM > To: rspec-users at rubyforge.org > Subject: Re: [rspec-users] Problem with colorized output in cygwin on > Vista (was: RSpec Formats with Strange Characters) > > Brandon, > This was a tough one, although I still don''t have color on autospec > (only have color when running specs manually ), AND I forgot exactly > how the problem was solved, but hopefully this will get you in the > right direction. > > 1. here are two gems that may help: > gem install term-ansicolor > gem install win32console > and then for some reason I aded the following to my /cygdrive/c/ > Users/<myusername>/irbrc file (I''m not sure if this is necessary for > running specs, but you may want to try it). > require ''win32console'' > > 2. finally installing and using the RXVT shell instead may have solved > the problem (again, I compleletely forgot) > You can find it in the "Shells" section of the CYGWIN installer. > Here are the three checks I used: > rxvt: VT102... > rxvt-unicode-X: An improved... > rxvt-unicode-common: An improved.... > > 3. If you''re doing a lot of work on IRB, you may want to also install > Wirble and add a few more lines to your irbrc: > require ''wirble'' > Wirble.init > Wirble.colorize > > Wellp, hope this at least got you in the right direction...if you find > out how to colorize autospec, could you let me know? > Bernie > > On Apr 5, 12:23?pm, David Chelimsky <dchelim... at gmail.com> wrote: > > Changing the name of this to hopefully catch the eye of other > > Vista/cygwin/rspec users. > > > > On Sun, Apr 5, 2009 at 9:45 AM, Brandon Olivares > > > > <programmer2... at gmail.com> wrote: > > > > >> -----Original Message----- > > >> From: rspec-users-boun... at rubyforge.org [mailto:rspec-users- > > >> boun... at rubyforge.org] On Behalf Of aslak hellesoy > > >> Sent: Sunday, April 05, 2009 6:50 AM > > >> To: rspec-users > > >> Subject: Re: [rspec-users] RSpec Formats with Strange Characters > > > > >> Please describe your environment. OS, various versions etc. > > > > > Ruby 1.8.7, RSpec 1.2.2, Cygwin on Windows Vista. > > > > Those characters are for coloring the output. I''m running XP in > > Parallels w/ ruby 1.8.7 and cygwin and I get colored output rather > > than seeing those characters. I''m guessing Vista is different :) > > > > Anybody else running Vista that knows how to get this to work? > > > > > > > > > Thanks, > > > Brandon > > > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-us... at rubyforge.org > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec- > users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Brandon Olivares
2009-Apr-06 01:39 UTC
[rspec-users] Problem with colorized output in cygwin on Vista (was: RSpec Formats with Strange Characters)
Hi, Nevermind that. I realized it works fine if I run rake spec, but not if I run script/autospec and only some of the examples run. Brandon> -----Original Message----- > From: rspec-users-bounces at rubyforge.org [mailto:rspec-users- > bounces at rubyforge.org] On Behalf Of Bernie > Sent: Sunday, April 05, 2009 1:52 PM > To: rspec-users at rubyforge.org > Subject: Re: [rspec-users] Problem with colorized output in cygwin on > Vista (was: RSpec Formats with Strange Characters) > > Brandon, > This was a tough one, although I still don''t have color on autospec > (only have color when running specs manually ), AND I forgot exactly > how the problem was solved, but hopefully this will get you in the > right direction. > > 1. here are two gems that may help: > gem install term-ansicolor > gem install win32console > and then for some reason I aded the following to my /cygdrive/c/ > Users/<myusername>/irbrc file (I''m not sure if this is necessary for > running specs, but you may want to try it). > require ''win32console'' > > 2. finally installing and using the RXVT shell instead may have solved > the problem (again, I compleletely forgot) > You can find it in the "Shells" section of the CYGWIN installer. > Here are the three checks I used: > rxvt: VT102... > rxvt-unicode-X: An improved... > rxvt-unicode-common: An improved.... > > 3. If you''re doing a lot of work on IRB, you may want to also install > Wirble and add a few more lines to your irbrc: > require ''wirble'' > Wirble.init > Wirble.colorize > > Wellp, hope this at least got you in the right direction...if you find > out how to colorize autospec, could you let me know? > Bernie > > On Apr 5, 12:23?pm, David Chelimsky <dchelim... at gmail.com> wrote: > > Changing the name of this to hopefully catch the eye of other > > Vista/cygwin/rspec users. > > > > On Sun, Apr 5, 2009 at 9:45 AM, Brandon Olivares > > > > <programmer2... at gmail.com> wrote: > > > > >> -----Original Message----- > > >> From: rspec-users-boun... at rubyforge.org [mailto:rspec-users- > > >> boun... at rubyforge.org] On Behalf Of aslak hellesoy > > >> Sent: Sunday, April 05, 2009 6:50 AM > > >> To: rspec-users > > >> Subject: Re: [rspec-users] RSpec Formats with Strange Characters > > > > >> Please describe your environment. OS, various versions etc. > > > > > Ruby 1.8.7, RSpec 1.2.2, Cygwin on Windows Vista. > > > > Those characters are for coloring the output. I''m running XP in > > Parallels w/ ruby 1.8.7 and cygwin and I get colored output rather > > than seeing those characters. I''m guessing Vista is different :) > > > > Anybody else running Vista that knows how to get this to work? > > > > > > > > > Thanks, > > > Brandon > > > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-us... at rubyforge.org > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec- > users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users