Why in rails CLI do I constantly see “←[32m.←[0m”

前端 未结 2 1033
面向向阳花
面向向阳花 2021-01-18 08:00

I am a newbie trying to follow Michael Hartl\'s excellent rails tutorial. I have upgraded to rails 3.2.3 and ruby 1.9.3 which I run on windows vista. The problem occurs when

相关标签:
2条回答
  • 2021-01-18 08:25
    1. Open the .rspec file in your application directory
    2. remove the first line (--color)
    3. Save, done :-)
    0 讨论(0)
  • 2021-01-18 08:38

    They are terminal control characters, they can be used to change the colour of the terminal as suggested in the question and also to move the cursor and delete characters. If these appear with colour disabled then I would assume they are cursor movement control characters.

    EDIT:

    http://www.termsys.demon.co.uk/vtansi.htm lists the VT100 control characters. It appears that it is attempting to set the text color, to green.

    0 讨论(0)
提交回复
热议问题