Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Inverse experience: I had to realize that "Enter" meant the carriage return key ;)


When you start with a 5-level Baudot machine as your 'terminal' -- it's pretty easy to remember that the Carriage Return key causes the, ahh, Carriage to Return, ready to over-print (if you don't do a Line Feed); or if you did a Line Feed, then you're at the beginning of a fresh, new line.

Unix using \n for carriage return + line feed was ok only because it was still possible to use \r (carriage return) to do overprinting.

And of course, the 5-level baudot machine had no lower case; but unix could output \L\O\W\E\R \C\A\S\E just fine...

And then, don't forget about trigraphs: '??(' == '[' and '??)' == ']' etc

Ahh, the joy of legacy hardware.


Plain old typewriters made CR and LF pretty self evident, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: