[Top][All Lists]

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

Re: tset bug

From: Thomas Dickey
Subject: Re: tset bug
Date: Fri, 6 Nov 2015 20:53:24 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Nov 06, 2015 at 06:52:53AM -0800, Rich Burridge wrote:
> Hi,
> I see the following problem with the tset application that comes with
> ncurses:
> % $ TERM=sun-cmd
> % tset -s -Q
> TERM=sun-c;
> %
> A quick scan of the code suggests that the line:
>     /* Get the terminal name from the entry. */
>     ttype = _nc_first_name(cur_term->type.term_names);
> in .../progs/tset.c should be trying to find an exact match rather
> than the first one, as it's finding /usr/share/terminfo/s/sun-c and
> not /usr/share/terminfo/s/sun-cmd

hmm.  I've been aware of this for a long time, but had not thought it
was a bug.  Checking, I see that Solaris behaves as you suggest, and
I don't see it as a documented feature.  There may have been some (long-ago)
valid reason, e.g., compatibility with BSD (I'll check...).


Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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