Workaround for ansi colors in a repl.
Merge pull request #233 from vkz/master

Workaround for ansi colors in a repl.
Refactoring