remove ansi escape sequences

Like #19 and #30, I have the same problem with ANSI escape sequences, so I modify the code to remove the sequences.