From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9394 invoked from network); 25 Nov 2020 17:38:37 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 25 Nov 2020 17:38:37 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 1557A95038; Thu, 26 Nov 2020 03:38:35 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 9CF2694858; Thu, 26 Nov 2020 03:38:18 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 4C89094858; Thu, 26 Nov 2020 03:38:15 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id E0D7D944AE for ; Thu, 26 Nov 2020 03:38:14 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id 67C3435E08B; Wed, 25 Nov 2020 09:38:14 -0800 (PST) Date: Wed, 25 Nov 2020 09:38:14 -0800 From: Larry McVoy To: Grant Taylor Message-ID: <20201125173814.GB9589@mcvoy.com> References: <9c1595cc-54a1-8af9-0c2d-083cb04dd97c@spamtrap.tnetconsulting.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c1595cc-54a1-8af9-0c2d-083cb04dd97c@spamtrap.tnetconsulting.net> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [TUHS] Seeking wisdom from Unix Greybeards X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cctalk , The Unix Heritage Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" man 1 tput is what I use. On Wed, Nov 25, 2020 at 10:14:55AM -0700, Grant Taylor via TUHS wrote: > Hi, > > As I find myself starting yet another project that that wants to use ANSI > control sequences for colorization of text, I find myself -- yet again -- > wondering if there is a better way to generate the output from the code in a > way that respects TERMinal capabilites. > > Is there a better / different control sequence that I can ~> should use for > colorizing / stylizing output that will account for the differences in > capabilities between a VT100 and XTerm? > > Can I wrap things that I output so that I don't send color control sequences > to a TERMinal that doesn't support them? > > > > -- > Grant. . . . > unix || die > -- --- Larry McVoy lm at mcvoy.com http://www.mcvoy.com/lm