View Full Version : CR, meaning

11-27-2006, 12:33 PM
Trying to find out what the CR, command means and why do we use it at times twice? CR,CR
Go easy I'm just starting out.

Kevin Wood
11-27-2006, 12:43 PM
CR stands for "Carriage Return", a term left over from typewriters.

It moves the cursor to the next line, so using several in a row moves the cursor several lines.

Here is more about the history: en.wikipedia.org/wiki/Carriage_return (http://en.wikipedia.org/wiki/Carriage_return)

11-27-2006, 07:54 PM
Thanks, sometimes it's the little things that drive you nuts...

11-27-2006, 09:54 PM
In the 'olden days', when we used Teletype writers (TTY), the CR (Carriage Return) (CHR(13)) ('\r') would move the 'carriage' back to the left, and a LF (Line Feed) (CHR(10)) ('\n') would advance the roller one line. Thus the popularity of CR-LF to end a line in MSDOS text files.

Unix got 'smarter', and so automatically gave you a CR-LF if you only specified an LF.