Re: tput failing on 10 and 12 systems?

From: Julian Elischer <julian_at_freebsd.org>
Date: Tue, 22 Nov 2016 01:03:00 +0800
On 22/11/2016 12:49 AM, Adrian Chadd wrote:
> Hiya,
>
> Just to follow through - part of tput is to decode command args, but
> it then just requests it from the ncurses tputs() call.
>
> So it could be tput, but it could also be the BSD ncurses work.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214709
>
>
> -adrian
>
>
> On 21 November 2016 at 07:54, Julian Elischer <julian_at_freebsd.org> wrote:
>> example on freefall     (FreeBSD 12.0-CURRENT #0 r306376)
>>
>> julian_at_freefall:tput setaf 4|od -c
>> 0000000  033   [   m
>> 0000003
>>
>> so nothing happens, and tput returns 1.
>>
>> but on a FreeBSD 8 system:
>>
>> [jelischer_at_alpha ~]$ tput setaf 4|od -c
>> 0000000  033   [   3   4   m
>> 0000005
>>
>> which make the text change color.
>>
>>
>> similarly all the related tput color commands I can think of fail on
>> 10,11,12
>>
>> but programs such as vim can use color just fine. So I suspect tput itself.
>>
>>
>> anyone have experience with this? seems easy to reproduce.
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Mon Nov 21 2016 - 16:03:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC