| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| X-T2-Posting-ID: | dCnToGxhL58ot4EWY8b+QGwMembwLoz1X2yB7MdtIiA= |
| X-Cloudmark-Score: | 0.000000 [] |
| Date: | Mon, 6 Mar 2006 23:12:12 +0100 |
| From: | Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: "tput init" fails - TERMINFO |
| Message-ID: | <20060306221212.GC5247@bouh.residence.ens-lyon.fr> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <20060210093226 DOT GP4275 AT implementation DOT labri DOT fr> <BAY103-F18887E748F29A2987ADD8C8A020 AT phx DOT gbl> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <BAY103-F18887E748F29A2987ADD8C8A020@phx.gbl> |
| User-Agent: | Mutt/1.5.9i-nntp |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Hi,
Quite late, but...
Cédric Bretaudeau, le Fri 10 Feb 2006 10:25:56 +0000, a écrit :
> >Brian Dessent, le Fri 10 Feb 2006 01:25:45 -0800, a écrit :
> >> 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:
> >
> >Ah indeed.
Ok, found the issue: try
tput init.exe
that should work. The problem is how the is_init variable is set in
progs/tput.c:check_aliases():
is_init = (strcmp(name, PROG_INIT) == 0);
PROG_INIT is defined in the transform.h file, generated by the Makefile: echo "#define PROG_INIT \"$(actual_init)\"" >>$@
and
actual_init = `echo init$x| $(TRANSFORM)`
i.e. PROG_INIT has the pending .exe extension.
Check_aliases() should just discard any extension when comparing name
and PROG_INIT/PROG_RESET.
Regards,
Samuel
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |