Correctly emitting the right escape codes at the right positions is arguably very much a Claude Code "feature", as it is on CC to do so.