delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/05/19:43:48

X-Spam-Check-By: sourceware.org
Message-ID: <457611F0.9060606@gcmail.maricopa.edu>
Date: Tue, 05 Dec 2006 17:42:24 -0700
From: Mark Edgar <mark DOT edgar AT gcmail DOT maricopa DOT edu>
User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: bash-3.2.5-7: COLUMNS and LINES variables are not set
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

It seems that bash for Cygwin does not set the COLUMNS and LINES shell 
variables, neither at startup nor when WINCH is delivered.  Defining 
TIOCGWINSZ by including <termios.h> in lib/sh/winsize.c fixes the issue.

					-Mark

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019