Carriage return
A carriage return, often shortened to CR, or return, is a control character or mechanism used to reset a device's position to the beginning of a line of text.[src] It is closely associated with the line feed and newline concepts, although it can be considered separately in its own right.[src]
A carriage return, often shortened to CR, or return, is a control character or mechanism used to reset a device's position to the beginning of a line of text.[src] It is closely associated with the line feed and newline concepts, although it can be considered separately in its own right.[src] ==Typewriters== with carriage return lever at left Originally, the term "carriage return" referred to a mechanism or lever on a typewriter.[src] For machines where the type element was fixed and the paper held in a moving carriage, this lever was on the left attached to the moving carriage, and operated after typing a line of text to cause the carriage to return to the far right so the type element would be aligned to the left side of the paper.[src] The lever would also usually feed the paper to advance to the next line.[src] Many electric typewriters such as IBM Electric or Underwood Electric made carriage return to be another key on the keyboard instead of a lever.[src] The key was usually labeled "carriage return", "return", or "power return".[src] With typewriters like the Selectric, where the type element moved when typing and the paper was held stationary, the key returned the type element to the far left and the term "carrier return" was sometimes used for this function.[src] To improve the keyboard for non-English-speakers, the symbol ↵ (U+21B5, HTML entity ↵ ) was introduced to communicate the combined carriage return and line feed action.[src] ==Computers== In computing, the carriage return is one of the control characters in ASCII code, Unicode, EBCDIC, and many other codes.[src] It commands a printer, or other output system such as the display of a system console, to move the position of the cursor to the first position on the same line.[src] It was mostly used along with line feed (LF), a move to the next line, so that together they start a new line.[src] Together, this sequence can be referred to as CRLF.[src] The carriage return and line feed functions were split for practical reasons: Carriage return by itself provided the ability to overprint the line with new text.[src] This could be used to produce bold or accented characters, underscores, struck-out text, and some composite symbols.[src] Early mechanical printers were too slow to return the carriage in the time it took to process one character.[src] Therefore, the time spent sending the line feed was not wasted (often several more characters had to be sent to ensure the carriage return had happened before sending a printing character).[src] This is why the carriage return was always sent first.[src] It was then also possible to fit multiple line feed operations into the time taken for a single carriage return—for example for printing doublespaced text, headers/footers or title pages—to save print and transmission time without the need for additional circuitry or mechanical complexity to "filter out" spurious additional CR signals.[src] As early as 1901, Baudot code contained separate carriage return and line feed characters.[src] Many computer programs use the carriage return character, alone or with a line feed, to signal the end of a line of text, but other characters are also used for this function (see newline); others use it only for a paragraph break (a "hard return").[src] Some standards which introduce their own representations for line and paragraph control (for example HTML) and many programming languages treat carriage return and line feed as whitespace.[src] In both ASCII and Unicode, the carriage return is assigned code point 13 (or 0D in hexadecimal); it may also be seen as control+M or .[src] In character and string constants in the C programming language and in many other languages (including representations of regular expressions ) influenced by C, \r denotes this character.[3] ==See also== Newline Enter key Soft return Unix2dos C0 and C1 control codes ==References==[src]
27 sentences · 27 cited inline · 3 references stored
References
- CRLF . MDN Web Docs . · retrieved 2026-08-27 · rev 1371867077
Cite this reference
MLA "CRLF . MDN Web Docs ." CRLF. 2026-08-27. https://en.wikipedia.org/w/index.php?oldid=1371867077. Accessed 06 December 2026.
Chicago "CRLF . MDN Web Docs ." CRLF. 2026-08-27. https://en.wikipedia.org/w/index.php?oldid=1371867077.
APA CRLF. (2026). CRLF . MDN Web Docs . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371867077
- Regular expression syntax reference . JetBrains . · retrieved 2026-08-27 · rev 1371867077
Cite this reference
MLA "Regular expression syntax reference . JetBrains ." Regular expression syntax reference. 2026-08-27. https://en.wikipedia.org/w/index.php?oldid=1371867077. Accessed 06 December 2026.
Chicago "Regular expression syntax reference . JetBrains ." Regular expression syntax reference. 2026-08-27. https://en.wikipedia.org/w/index.php?oldid=1371867077.
APA Regular expression syntax reference. (2026). Regular expression syntax reference . JetBrains . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371867077
- Jan Goyvaerts. Regular Expressions Quick Start . regular-expressions.info . · retrieved 2026-08-27 · rev 1371867077
Cite this reference
MLA "Jan Goyvaerts. Regular Expressions Quick Start . regular-expressions.info ." Jan Goyvaerts. 2026-08-27. https://en.wikipedia.org/w/index.php?oldid=1371867077. Accessed 06 December 2026.
Chicago "Jan Goyvaerts. Regular Expressions Quick Start . regular-expressions.info ." Jan Goyvaerts. 2026-08-27. https://en.wikipedia.org/w/index.php?oldid=1371867077.
APA Jan Goyvaerts. (2026). Jan Goyvaerts. Regular Expressions Quick Start . regular-expressions.info . Retrieved December 6, 2026, from https://en.wikipedia.org/w/index.php?oldid=1371867077
Cite this article
MLA
"Carriage return." encyclopegia.org, 2026, https://encyclopegia.org/wiki/carriage-return. Accessed 06 December 2026.
Chicago
"Carriage return." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/carriage-return.
APA
encyclopegia.org. (2026). Carriage return. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/carriage-return
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON