From: "Julian Foad" <[EMAIL PROTECTED]> > Frederic Bouvier wrote: > > > > The telnet interface produce wrong line ending when I run both FlightGear > > and the telnet client on Win2k. I've just sent a patch to Curt that produce > > line ending based on the platform where fgfs is running ( something between > > #ifdef and #endif ). > > > > For the moment, this patch only address the issue when fgfs and > > the telnet client run on the same platform. > > > > Thinking of it now, it would be better to generate proper line endings based > > on the capabilities of the client. Do the telnet interface support telnet > > commands DO, DONT, WILL and WONT ? or perhaps line ending can be deduced > > from > > the incoming command. > > > > Ideas ? > > Idea: the receiver should accept any of these four line endings: > CR > LF > CR,LF > LF,CR > > In fact, I strongly believe that all text parsers, viewers, and readers of any kind should accept these.
Perhaps I didn't made me clear. The problem is when FlightGear send text to the telnet client. Each line begins where the previous ends because Win2k telnet client needs a cariage return (\r) with the line feed (\n). -Fred _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
