[Bug 58665] cmd incorrectly wraps text containing ANSI escape sequences