[En-Nut-Discussion] Cooked text mode for socket streams

Philipp Burch phip at hb9etc.ch
Fri Sep 27 09:44:07 CEST 2013

Hi all,

I've here an application where a board running Ethernut may be accessed 
via a Telnet connection. This works well with a Linux client, but if I 
connect from Windows, using e.g. Putty, the sent lines are displayed 
shifted like so:

: abc
:    def
:       ghi

(The colons are just there to avoid trimming)

The problem is obviously that no \r are sent, so it is really just a 
newline without a carriage return. The serial stream can do this, 
however, it "cooks" the output prior to sending. Looking at the tcps 
example in the Nut source tree, there is a comment like this:

  * we can use standard I/O. Note, that socket streams
  * currently do support cooked text mode.

Well, how to enable it, then? Or is there a "not" missing?


More information about the En-Nut-Discussion mailing list