We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Hardware

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is Carriage Return?

By Cathy Rogers
Updated: May 16, 2024
Views: 81,925
Share

In pre-computer days, typewriters were equipped with a lever on the left-hand side known as a carriage return. When pressed, the mechanism sent the paper-holding cylinder, or carriage, to the right, and at the same time, rotated the paper upward to begin a new line. Eventually, a power return was created that was pressed with the little finger on the right hand. This feature was first added to electric typewrites in 1960 by Smith Corona.

The carriage return, or just “return” for short, is now known as the enter key and is labeled with a backward arrow symbol (↵). This key serves the same function as the original lever, moving the cursor to the beginning of the next line. With the advent of word wrap, however, it was no longer necessary to press return at the end of each line. Now, the enter/return key is known as a hard return and is used only at the end of a paragraph.

Carriage return also refers to the symbol, command, or key that causes the printer to be positioned, or the cursor to be displayed, at the left margin. It also controls paper feeding. In ASCII or Unicode, the character code decimal 13 represents it. In some programming languages, such as C, UNIX, Java and others, it is signified by \r.

Because of variances in operating languages and the codes they use, text files are not always compatible between operating systems. For example, Macintosh uses the code CR to indicate the end of each line, similar to the typewriter. With Linux, each line ends with LF, which indicates line feed. These codes not only differ in lettering; their ASCII codes are different as well — CR is a 13 in ASCII code and LR is a 10. With Microsoft products, lines end with a combination of both: CRLF.

Fortunately, most people can use File Transfer Protocol (FTP) to transfer text files from one operating system to another. To transfer text files, users should choose the ASCII mode of FTP. To transfer other types of files, such as photos or sound files, they should use FTP in the binary mode.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By anon114904 — On Sep 30, 2010

"Cr is a 13 in ascii code and lr is a 10"

lr -> lf

By willie3 — On Jul 22, 2010

@GoldenRatio - Good question! There are many situations where you will not be able to input a carriage return with the enter key because pressing the enter key will result in another action.

In windows, to enter a carriage return using ASCII, hold down the ALT key and hit the key sequence ‘0’ ‘1’ ‘3.’ When you release the alt key, a carriage return will be inserted.

I’m *pretty* sure it works the same way on OSX and linux.

By GoldenRatio — On Jul 22, 2010

Good article. This article mentions the ASCII code for a carriage return… can anybody tell me how I would input a carriage return by using the ASCII code and not the enter key?

Share
https://www.easytechjunkie.com/what-is-carriage-return.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.