comint-carriage-motion
comint-carriage-motion is a compiled Lisp function in `comint.el
'.
(comint-carriage-motion START END)
Interpret carriage control characters in the region from START to END.
Translate carriage return/linefeed sequences to linefeeds.
Make single carriage returns delete to the beginning of the line.
Make backspaces delete the previous character.