Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jIUgG-0004bh-F5 for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Mar 2020 09:56:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jIUgE-0006tW-OL for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Mar 2020 09:56:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jIUgD-0006p8-FH for pgsql-hackers@lists.postgresql.org; Sun, 29 Mar 2020 09:56:34 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIUg3-0001Uv-Il for pgsql-hackers@postgresql.org; Sun, 29 Mar 2020 09:56:32 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 404B3735; Sun, 29 Mar 2020 05:56:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 29 Mar 2020 05:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=g/kBSCFb8c8WM/6T4a4ju1UwMAovHrtpB5z2/9Cv6 ow=; b=DR92EOIOHRTMgr4ZGpfYFYhy59Ju/aflAaXwDe//sM6pwHRTRqeSM20hw xhegFMZlgHGVV84CesA65PjarwN8TRDaSxjrbetfF8AJjSVA2NTAQEEeYy8Ru7Sa ywLb4c1gw954S+GAl/Q9iSnSOgKvicMw5MALT84MgFWyuErAG0pQF5uTn9O0tfjt jq0onPYCBP1XkRN/K+dA4dJnZP1Fh5zyDCOhcVriUSwzaBN2AsvDYwlHRa7ge1aH ggcRX91GE3WdvNdoGbzFJVH2Fp1UceKSn6/PGWfxFaQC/Y0/nXGCDNXw9FNJBTfJ QUeVogxjOiy/utsAgOq8bReDEkPyQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeifedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvddufedrvdegudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E299306C813; Sun, 29 Mar 2020 05:56:17 -0400 (EDT) Subject: Re: color by default To: Michael Paquier References: <20200106053824.GO3598@paquier.xyz> <171d92f5-fc29-a207-3db9-c16c63bb2ea7@archidevsys.co.nz> <20200303053101.GH32059@paquier.xyz> <20200320021557.GC1850@momjian.us> <20200321025522.GD10066@momjian.us> <6707.1584760507@sss.pgh.pa.us> <20200321032207.GE10066@momjian.us> <20200323050410.GE2900@paquier.xyz> <20200326063625.GG1471@paquier.xyz> Cc: Bruce Momjian , Tom Lane , =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , Gavin Flower , Robert Haas , pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <2fa9de54-68cd-b29f-1ed1-b6fea806039a@2ndquadrant.com> Date: Sun, 29 Mar 2020 11:56:15 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200326063625.GG1471@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-03-26 07:36, Michael Paquier wrote: > I am not sure that deleting all the mentions would be a good idea, as > we'd lose track of which tool supports coloring or not, and that could > confuse users. What about switching the existing paragraph to a > simple sentence with a link to the new appendix you are adding? Say: > "pg_foo supports colorized output". I didn't do this because it would create additional complications in the man pages. But there is now an index entry, so it's possible to find more information. >> + >> + The actual colors to be used are configured using the environment variable >> + PG_COLORSPG_COLORS >> + (note plural). The value is a colon-separated list of >> + key=value >> + pairs. The keys specify what the color is to be used for. The values are >> + SGR (Select Graphic Rendition) specifications, which are interpreted by the >> + terminal. >> + > > A reference to SGR to understand better what's the list of values > supported would be nice? I'm not sure how to do that. The full list of possible values is huge, and exactly what is supported depends on the terminal. >> + >> + The default value is error=01;31:warning=01;35:locus=01. >> + > > Could it be possible to have more details about what those three > fields map to? I have added information about that and explained the example values. I think if you search for "Select Graphic Rendition" and look for the example values, you can make sense of this. Committed with those changes. This closes the commit fest item. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services