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.89) (envelope-from ) id 1invS3-0006U3-5x for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jan 2020 02:15:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1invS0-0005jb-Ad for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Jan 2020 02:15:32 +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 1invS0-0005jU-1j for pgsql-hackers@lists.postgresql.org; Sun, 05 Jan 2020 02:15:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1invRt-0003JT-8d for pgsql-hackers@postgresql.org; Sun, 05 Jan 2020 02:15:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 0052FLvR001737; Sat, 4 Jan 2020 21:15:21 -0500 From: Tom Lane cc: Peter Geoghegan , Robert Haas , Christoph Berg , PostgreSQL Hackers Subject: Re: pgsql: Add basic TAP tests for psql's tab-completion logic. In-reply-to: <912.1578189448@sss.pgh.pa.us> References: <20200103170226.GB32629@msg.df7cb.de> <26339.1578072930@sss.pgh.pa.us> <20200103174839.GD32629@msg.df7cb.de> <22669.1578104202@sss.pgh.pa.us> <25298.1578106280@sss.pgh.pa.us> <3055.1578115809@sss.pgh.pa.us> <8038.1578119995@sss.pgh.pa.us> <9256.1578121229@sss.pgh.pa.us> <25739.1578161968@sss.pgh.pa.us> <22817.1578167447@sss.pgh.pa.us> <25068.1578181174@s! ss.pgh.pa.us> <26857.1578183240@sss.pgh.pa.us> <912.1578189448@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 04 Jan 2020 20:57:28 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1735.1578190520.1@sss.pgh.pa.us> Date: Sat, 04 Jan 2020 21:15:20 -0500 Message-ID: <1736.1578190520@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Peter Geoghegan writes: >> Once I comment out the following two lines from ~/.inputrc, everything >> works fine on >> HEAD + HEAD-unset-TERM-in-tab-completion-test.patch: >> set colored-completion-prefix on >> set colored-stats on > Hm. I wonder how it is that that leads to ignoring the TERM environment? A bit of digging says that readline's color support is just hard-wired to use xterm-style escapes -- it doesn't look like there's any connection to terminfo at all. See the _rl_color_indicator[] data structure. The \e[...m and \e[K escape sequences can both be found there. regards, tom lane