X-Spam-Check-By: sourceware.org
Message-ID: <43EC5C19.66BDC58@dessent.net>
Date: Fri, 10 Feb 2006 01:25:45 -0800
From: Brian Dessent <brian@dessent.net>
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: "tput init" fails - TERMINFO
References: <BAY103-F70D600CC614EEDA9BC48F8A020@phx.gbl> <20060210090954.GL4275@implementation.labri.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Samuel Thibault wrote:

> in man 5 terminfo, there is no init string indeed. There is is1, is2 and
> is3 however. See further in man page for details.

Yes, but "man tput" says that "tput init" should work:

       init   If the terminfo database is present and an entry  for  the
              user's  terminal exists (see -Ttype, above), the following
              will occur: (1) if present, the terminal's  initialization
              strings will be output (is1, is2, is3, if, iprog), (2) any
              delays (e.g., newline) specified in the entry will be  set
              in the tty driver, (3) tabs expansion will be turned on or
              off according to the specification in the entry,  and  (4)
              if tabs are not expanded, standard tabs will be set (every
              8 spaces).  If an entry does not contain  the  information
              needed for any of the four above activities, that activity
              will silently be skipped.

I'm not sure why it's trying to treat "init" as a capname and failing.  It would
seem the documentation is out of sync with the code, or there is a bug
somewhere.

Brian

--
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/

