Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 14 Nov 2002 09:46:26 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: pico and nano: number of lines displayed Message-ID: <20021114094626.D10395@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <59A835EDCDDBEB46BC75402F4604D5528F74A6 AT elmer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59A835EDCDDBEB46BC75402F4604D5528F74A6@elmer> User-Agent: Mutt/1.3.22.1i 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 AT cygwin DOT 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/