This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: pico and nano: number of lines displayed
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Nov 2002 09:46:26 +0100
- Subject: Re: pico and nano: number of lines displayed
- References: <59A835EDCDDBEB46BC75402F4604D5528F74A6@elmer>
- Reply-to: cygwin at cygwin dot com
On Wed, Nov 13, 2002 at 08:08:40AM -0500, Sergei Okhapkin wrote:
> Here is a piece of login source code:
> if (!hflag) { /* XXX */
> static struct winsize win = { 0, 0/*, 0, 0*/ };
>
> (void)ioctl(0, TIOCSWINSZ, &win);
> }
>
> Login resets the tty window size to 0 if -h option missed (don't ask me
> why:-)
I have no idea why the original login(1) is doing that. However, it
did never hurt since login is supposed to work only with servers as
telnetd or rlogind (you read /usr/doc/Cygwin/login.README?) which use
the -h option. So these login attempts never see this resetting rows
and columns to 0.
However, I checked against other (non-Cygwin-)versions of login(1) and
these versions are not doing that so I'm going to take the code out for
us, too. Expect a new version soon.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/