DEV Community

Cover image for CRLF-
conjurer
conjurer

Posted on

CRLF-

Both terms originate from typewriter mechanics.

Carriage Return (aka \r)

Pushing the lever to slide the cylinder (carriage) to the right, resetting the printing pointer to the left margin.

Typewriter operators would sometimes send only a CR to:

  • bold text by printing the same characters right over themselves or
  • mask confidential text by stamping XXXX directly on top of secrets.

Line Feed (aka \n)

The wheel mechanism that rotated the cylinder upwards to move the paper down and begin a new line.

Top comments (0)