|
|
|
|
Carriage return
|
| |
|
| |
Originally, carriage return was the term for the control character in Baudot code on a teletypewriter for end of line return to beginning of line and did not include line feed. Later it was used for a mechanism or lever on a typewriter that would cause the cylinder on which the paper was held (the carriage) to return to the left side of the paper after a line of text had been typed, and would usually move the paper to the next line as well. The first power carriage return was added to electric typewriters by Smith Corona in 1960. The key for this was usually labelled "carriage return" or "return". To improve the keyboard for non-English-speakers, the symbol was introduced to mark this key, since this graphic could communicate the action of the key without using words.
User interface functionality On Windows, Macintosh and most other GUI operating systems, hitting the return key also results in the default option of a dialog box (usually OK or Yes) being selected.
Summary - Keys commonly generating the character "carriage return":
- "Enter" key
- "Return" key
- key
- Control-M
- ASCII and Unicode representation of "carriage return":
- Decimal code: 13
- Hexadecimal code: 0D
- Symbol: CR
- Programming escape codes and functions for generating a "carriage return":
- PHP, Python, Bash, C/C++, C#, Java, Javascript, Perl, Ruby:
\r - Visual Basic (VB), VBA and VB.NET:
vbCr or Chr$(13) - XML (HTML, XSLT): 
- Microsoft Office "carriage return":
- Word: Shift-Enter
- Excel: Alt-Enter
- OpenOffice.org "carriage return":
- Writer in "Find & Replace" regular expression:
$
See also
|
| |
|
|