Remove ANSI sequence from the captured output lines
Merge pull request #2345 from mnaoumov/fix-1313

Remove ANSI sequence from the captured output lines