Carriage return is the action of moving the cursor to the beginning of the current line. It is often used in combination with a line feed to create a new line. In many programming languages, the carriage return character is represented by the escape sequence “\r”.
Carriage return can be used to create a variety of effects, such as: