D
David Thompson
Or other padding, as discussed nearby. A person punching tape wouldsometimes two carriage returns to give the teletype the time it needs
to do this
find CR easiest to use, but automation mostly used NUL or DEL.
To answer another question nearby, real Teletypes did not have flow
control, although they had an (extra cost) option to stop and start
the *Teletype* reading paper tape, which could be used by a receiving
computer or other automated equipment to slow that input (only).
Some other terminals, especially some video terminals (next), did
extend these characters (DC1 aka XON, DC3 aka XOFF) for flow control
from the computer or similar sender, but because of roundtrip delay
this only works if the terminal has at least some buffering (about 2-4
characters) and Teletypes didn't. And some terminal modems of the day
were half-duplex (doesn't allow back traffic) or even if they were
nominally full-duplex didn't always reliably work that way.
yes but some terminals need \r\n some need \r\r\n and glass ttys don't
need both. The Unix decision to use a single logical end-of-line
Video terminals aka glass TTYs varied widely. Some used CR LF
separate, some had CR do LF, some had LF do CR, some had switch or
jumper or even PROM options. Some needed padding, some didn't -- some
early ones even needed *more* padding than mechanical TTYs!
I assume you mean storage, since most systems used lone CR input.character is the sane answer. The driver sorts out the display
problems.
Exactly.
I think I've seen \r used as a line terminator on DEC(?) machines.
Apple MacOS (at least classic) stored CR (reverse from what Keith (no
relation!) said nearby). I don't know any DEC *software* that did;
most used CR LF and some used counts or reassigned meanings within a
6-bit code. Much DEC *hardware* ran Unix and stored \n=LF.
Kind of, except \n was and still canonically is ASCII LF not CR.