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.
RE: My console rewrite is finally available
- To: Chris Faylor <cgf@cygnus.com>, "'Corinna Vinschen'" <corinna.vinschen@cityweb.de>
- Subject: RE: My console rewrite is finally available
- From: Sergey Okhapkin <sos@prospect.com.ru>
- Date: Fri, 26 Mar 1999 07:40:08 -0500
- Cc: "cygwin-developers@sourceware.cygnus.com" <cygwin-developers@sourceware.cygnus.com>
- Encoding: 31 TEXT
Corinna Vinschen wrote:
> Unfortunately, your patch doesn't work together with Sergeys
> remote package. Setting: CYGWIN=binmode ntea tty
>
> The following happens:
>
> Open Connection,
> telnetd starts `login.exe'...
> ... which displays "login:"
> I enter the login and press return...
> the cursor jumps to the beginning of the _same_ line,
> instead of to the next line and now, login.exe hangs.
Login reads username using the following loop (the code derived from linux login):
printf("login: ");
for (p = nbuf; (ch = getchar()) != '\n'; ) {
if (ch == EOF) {
badlogin(username);
exit(0);
}
if (p < nbuf + UT_NAMESIZE)
*p++ = ch;
}
Looks like getchar() returns \r instead of \n now.
--
Sergey Okhapkin, http://www.lexa.ru/sos
Piscataway, NJ