CARRIAGE RETURN
(Redirected from 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.
In computing, the 'carriage return' ('CR') is one of the control characters in ASCII code, Unicode or EBCDIC that commands a printer or other sort of display to move the position of the cursor to the first position on the same line. It was mostly used along with line feed, a move to the next line, while carriage return precedes line feed to indicate a new line. The term derives from the above usage, as early printers often closely resembled typewriters; this control character would activate a physical carriage-return mechanism.
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). Some standards which introduce their own representations for line and paragraph control (for example HTML) treat carriage return and line feed as whitespace.
In ASCII and Unicode, the character code decimal 13 (or hexadecimal 0D) is defined to be carriage return. In the C programming language and many other languages influenced by it,
Though used interchangebly today, the Return key and Enter key on PC keyboards actually send different scan code, so can be programmed for different uses.
Main articles: Enter key
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.
★ 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++, Java, Javascript, Perl:
★ : Visual Basic (VB), VBA and VB.NET:
★ Microsoft Office "carriage return":
★ : Word: Shift-Enter
★ : Excel: Alt-Enter
★ Enter key
★ Newline
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.
| Contents |
| Computer analogues |
| User interface functionality |
| Summary |
| See also |
Computer analogues
In computing, the 'carriage return' ('CR') is one of the control characters in ASCII code, Unicode or EBCDIC that commands a printer or other sort of display to move the position of the cursor to the first position on the same line. It was mostly used along with line feed, a move to the next line, while carriage return precedes line feed to indicate a new line. The term derives from the above usage, as early printers often closely resembled typewriters; this control character would activate a physical carriage-return mechanism.
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). Some standards which introduce their own representations for line and paragraph control (for example HTML) treat carriage return and line feed as whitespace.
In ASCII and Unicode, the character code decimal 13 (or hexadecimal 0D) is defined to be carriage return. In the C programming language and many other languages influenced by it,
denotes this character.Though used interchangebly today, the Return key and Enter key on PC keyboards actually send different scan code, so can be programmed for different uses.
User interface functionality
Main articles: Enter key
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++, Java, Javascript, Perl:
★ : Visual Basic (VB), VBA and VB.NET:
vbCr or Chr$(13)★ Microsoft Office "carriage return":
★ : Word: Shift-Enter
★ : Excel: Alt-Enter
See also
★ Enter key
★ Newline
This article provided by Wikipedia. To edit the contents of this article, click here for original source.
psst.. try this: add to faves

العربية
中国
Français
Deutsch
Ελληνική
हिन्दी
Italiano
日本語
Português
Русский
Español