On 2003.02.03 21:37 zentara wrote:
combination of carriage return and line feed (CR LF).
True: I don't always remember which is the one unix uses. I always have wondered why unix does it that way :-?
I think it would be better to ask why Windows does it with CRLF? Mac uses CR, so why would Windows waste all those bits?
Er... Windows does the same as plain Dos, which I suspect inherits that behaviour from CP/M -- I'm guessing about CP/M, but Dos did inherit a lot of things from that OS. In any case, Dos is older that Mac, isn't it? And, as Graham says, it is a combination used on printing machines, which allowed overprinting a character (undercase or boldcase, for example). On the console, it allowed programs using standard input to reuse the same line many times, and create simple progress info, like a text progress bar. I used that trick many times, I found it useful. True, it is one more byte every line... but that is not a very big deal. -- Cheers, Carlos Robinson