bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "tput init" fails - TERMINFO


From: Samuel Thibault
Subject: Re: "tput init" fails - TERMINFO
Date: Mon, 6 Mar 2006 23:12:12 +0100
User-agent: Mutt/1.5.9i-nntp

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]