This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: "tput init" fails - TERMINFO
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: cygwin at cygwin dot com
- Date: Mon, 6 Mar 2006 23:12:12 +0100
- Subject: Re: "tput init" fails - TERMINFO
- References: <20060210093226.GP4275@implementation.labri.fr> <BAY103-F18887E748F29A2987ADD8C8A020@phx.gbl>
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/