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
Thanks.