Weird symbols in command line - RAILS

When i use rails on Windows i get a bunch of strange literals besides actual text, like "[33m.2", "[32m➝*...text...[0m" and etc. Is there any way to get rid of them and how do you call them?

Pending:
←[33m  User should require a name←[0m
←[36m    # Not yet implemented←[0m
←[36m    # ./spec/models/user_spec.rb:13←[0m

Answers


Those characters are used to display colors in your command prompt. A way to add those colors in Windows:

  • download Ansicon
  • extract the correct folder on your computer (x86 if you have a 32-bit, x64 if 64-bit)
  • from your command prompt:

cd path/to/the/folder/you/extracted/

ansicon -i

That will install ansicon permanently to your computer (uninstall procedure in the readme).

  • You now have colours in your command prompt and those "weird" symbols will go away.

Need Your Help

What is the best way to know the last time a MongoDB doc was changed?

javascript node.js mongodb database

Do I need to tack on a lastActivity: new Date() @set every time I interact with it or is there a better way?

Format of External Links on Facebook

facebook security url web url-encoding

I have seen when you visit a profile on FB and click on link provided in