Carriage Return Article Index for
Carriage
Website Links For
Carriage
 

Information About

Carriage Return





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


See Also: 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