From owner-freebsd-current@freebsd.org Mon Nov 21 17:02:24 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 428E6C4D15E for ; Mon, 21 Nov 2016 17:02:24 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FAED7FD for ; Mon, 21 Nov 2016 17:02:23 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-226-236.lns20.per1.internode.on.net [121.45.226.236]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id uALH2J8b013419 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 21 Nov 2016 09:02:22 -0800 (PST) (envelope-from julian@freebsd.org) Subject: Re: tput failing on 10 and 12 systems? To: Adrian Chadd References: <834855a9-adcd-71b3-2422-e9eb97258486@freebsd.org> Cc: freebsd-current From: Julian Elischer Message-ID: Date: Tue, 22 Nov 2016 01:02:13 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 17:02:24 -0000 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. but the ncurses stuff works for things like vim > > > -adrian > > > On 21 November 2016 at 07:54, Julian Elischer wrote: >> example on freefall (FreeBSD 12.0-CURRENT #0 r306376) >> >> julian@freefall:tput setaf 4|od -c >> 0000000 033 [ m >> 0000003 >> >> so nothing happens, and tput returns 1. >> >> but on a FreeBSD 8 system: >> >> [jelischer@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@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"