Spencer Garrett (email@example.com)
8 Aug 87 23:40:44 GMT
In article <firstname.lastname@example.org>, email@example.com (William R. King) writes:
> Last week I posted a query about CR processing.
> The problem stemed from the connection between the Bridge CS/1 and
> the BSD 4.3 telnetd. The CS/1 was incorrectly sending \r\n as the
> line terminator instead of the correct \r\0 sequence. The BSD telnetd
> converted the \r\n sequence into \n and sent that into the pty. The
> \n was passed on to TWG telnet which interpeted \n as "delete the
> word to the left of the cursor". So much for logging in.
> I have since obtained a new release of Bridge CS/1 software (version
> 13000) which fixes the problem. They now offer the option (per port)
> of sending \r\n or \r\0 as the line terminator.
But this is incorrect! The Bridge box SHOULD be sending \r\n when you
hit <RETURN> or <ENTER> or whatever it's labelled on your keyboard.
This is the TELNET "end of line" indicator. Telnetd correctly converts
this to \n which is the equivalent sequence in a UNIX context. The
problem appears to be the Berkeley telnet program (as opposed to the
daemon) which is failing to convert \n to \n\r like it should, or
perhaps TWG telnet is failing to accept \r\n as the TELNET eol. The
sequence \r\0 is a "bare" carriage return which should get you to the
beginning of the line WITHOUT ending the line. This is the behaviour
you would get under UNIX with CRMOD turned off. The proper sequence
You hit <RETURN>
The Bridge box sends \r\n
telnetd converts \r\n to \n and feeds it to the pty
telnet reads \n from its tty (pseudo-tty, but it shouldn't matter)
telnet sends \r\n through its tcp stream to the vax
the vax should convert \r\n to whatever it wants for EOL
Making the Bridge box precompensate for a bug elsewhere by sending an
incorrect sequence is not good policy.
This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:38:49 GMT