strip off ansi movement sequences from output