Shop OBEX P1 Docs P2 Docs Learn Events
CR, meaning — Parallax Forums

CR, meaning

edited 2006-11-27 14:54 in BASIC Stamp
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.

Comments

  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-11-27 05:43
    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
  • edited 2006-11-27 12:54
    Thanks, sometimes it's the little things that drive you nuts...
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-11-27 14:54
    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.
Sign In or Register to comment.