P
P
Perzh2014-04-10 23:27:14
Ruby on Rails
Perzh, 2014-04-10 23:27:14

How to fix incorrect colored text output to console (Win7)?

Hello. I run RSpec tests, but the reports in the console are not colored. Instead of color, color codes or something like that are displayed. For example:

←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m
←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m.←[0m
←[32m.←[0m

Finished in 0.28802 seconds
←[32m17 examples, 0 failures←[0m

Tell me, please, is it possible to somehow fix this (either remove the codes, or force the console to colorize the text), otherwise a large number of extra characters makes it difficult to read.
PS:
Messages from git are displayed and colored normally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
himik, 2014-04-11
@Perzh

in project root create
.rspec file
and inside
--color

K
Kirill Platonov, 2014-04-11
@kirillplatonov

Try www.iterm2.com and https://github.com/robbyrussell/oh-my-zsh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question