This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Latest tty changes.



The problem with login via telnetd remains the same :(

After typing the username and LF (or CR), the connection is lost.

Corinna

Chris Faylor wrote:
> 
> Thank you.  I've applied this change and it does seem to fix things.
> It shouldn't make a difference but it does.  Now I just have to figure
> out why.
> 
> -chris
> 
> On Mon, Mar 29, 1999 at 09:42:57PM -0500, Sergey Okhapkin wrote:
> >The problem with binmode and tty (single LF output instead of CRLR) still exists if CYGWIN set to tty. Here is the fix:
> >
> >fhandler_tty.cc        (fhandler_tty_master::init): initialize termios flags to force
> >                               CR after LF.
> >
> >--- fhandler_tty.cc.orig        Wed Mar 24 22:22:47 1999
> >+++ fhandler_tty.cc     Mon Mar 29 19:11:21 1999
> >@@ -66,6 +66,7 @@ fhandler_tty_master::init (int ntty)
> >
> >   termios ti;
> >   memset (&ti, 0, sizeof (ti));
> >+  ti.c_oflag = ONLRET;
> >   console->tcsetattr (0, &ti);
> >
> >   ttyp->common_init (this);
> >
> >
> >--
> >Sergey Okhapkin, http://www.lexa.ru/sos
> >Piscataway, NJ
> >
> >
> 
> --
> cgf@cygnus.com
> http://www.cygnus.com/