Patrick R. Wade wrote:
> What happened when you hit ^J or ^M ?
Early Unix tty drivers (when consoles were serial) used to swap ^M and
^J. So, hitting ^M (or Enter or Return) would transmit a ^M to the
computer, and the tty driver would translate that to ^J, which is
newline ('\n' in C). Typing ^J (or Line Feed if your TTY had a Line
Feed key) would transmit ^J, and the tty driver would insert a ^M
character into the current line.
I'm not sure when they stopped doing that. Maybe System III or
System V. 4 BSD ttys had the old behavior, if I remember right.
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com [EMAIL PROTECTED]