| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-developers-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin-developers AT sourceware DOT cygnus DOT com |
| Message-ID: | <01BE775B.DFB62CA0@sos> |
| From: | Sergey Okhapkin <sos AT prospect DOT com DOT ru> |
| To: | Chris Faylor <cgf AT cygnus DOT com>, |
| "'Corinna Vinschen'" | |
| <corinna DOT vinschen AT cityweb DOT de> | |
| Cc: | "cygwin-developers AT sourceware DOT cygnus DOT com" |
| <cygwin-developers AT sourceware DOT cygnus DOT com> | |
| Subject: | RE: My console rewrite is finally available |
| Date: | Fri, 26 Mar 1999 07:40:08 -0500 |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |