Quantcast
Channel: Why are special characters such as "carriage return" represented as "^M"? - Super User
Browsing latest articles
Browse All 8 View Live

Answer by RonJohn for Why are special characters such as "carriage return"...

The need for some visual manner of displaying what are by definition non-printable characters.So, someone in the early 1970s (or maybe earlier) (I remember seeing it on CP/M, and someone else has...

View Article


Image may be NSFW.
Clik here to view.

Answer by Daniel R Hicks for Why are special characters such as "carriage...

The notation goes back to the earliest ASCII Teletypes (ca 1963). There was a CTRL key that toggled the 0x40 bit so that CTRL-M (carriage return) would be 0D instead of 4D, CTRL-G (bell) would be 07...

View Article


Answer by Don for Why are special characters such as "carriage return"...

The caret (^) is just shorthand for writing hold the Control key - CTRL down.In the good old days you could type these codes (see above) in directly, Ctrl key + G (^G) would make the terminal go...

View Article

Answer by barlop for Why are special characters such as "carriage return"...

Where is it documented, well this page lists every control character, with how to enter/represent it with the control key(though the first one, ascii character 0, has no control key representation),...

View Article

Answer by Art Gertner for Why are special characters such as "carriage...

I believe that what OP was actually asking about is called Caret Notation.Caret notation is a notation for unprintable control characters in ASCII encoding. The notation consists of a caret (^)...

View Article


Answer by Ofir Luzon for Why are special characters such as "carriage return"...

You can see all of the non pritable ASCII characters Control mapping in this table.

View Article

Answer by Flup for Why are special characters such as "carriage return"...

That is exactly the reason.ASCII defines characters 0-31 as non-printing control codes. Here's an extract from the ascii(7) manual page from a random Linux system (man ascii), up to and including CR...

View Article

Why are special characters such as "carriage return" represented as "^M"?

Why is ^M used to represent a carriage return in VIM and other contexts?My guess is that M is the 13th letter of the Latin alphabet and a carriage return is \x0D or decimal 13. Is this the reason? Is...

View Article

Browsing latest articles
Browse All 8 View Live