Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkved-0008D2-0R for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 18:15:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkveb-0000nT-7f for pgsql-general@arkaria.postgresql.org; Wed, 01 Aug 2018 18:15:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkvea-0000lU-2Q for pgsql-general@lists.postgresql.org; Wed, 01 Aug 2018 18:15:21 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkveW-000746-17 for pgsql-general@postgresql.org; Wed, 01 Aug 2018 18:15:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4D5C021D2C; Wed, 1 Aug 2018 14:15:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 01 Aug 2018 14:15:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=kxCbb3n94wwoT5PnKM9sj+pBC1gVG nWYj/dvpgzwXd0=; b=q4NwJYNNTmuV6UHcNAu6EC28YvKG/Dae4WWoatlRkZ3dJ Oe05jr6YtGiIgX8IxSX3a2tW5zanz+rsqMinsKIZ+ThT/aHrl2l4xnaLi4Dpy1O8 sgNcTQ52oUdGnEAQNjQyc03Pghdaf5QXL7YyHU8OH3yr/jCcDBUtPKwzUFS6FyVg PMFTJcAxg9RFzhI40ejImNQKubu/DMQulX5nJ5RGL7GHjdvdkkSl1GdaR+mEpPf2 7IrPOAQk0nAcWSW0wA7LEJAFXRvhZJtRzhJ73OEcQtCAktYmzOZDuNg1iaArSTAM OEPXHT2DqRCggyyvc91o1jS0lDUGeTJxyiYDtg3gw== 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-sender:x-me-sender:x-sasl-enc; s=fm3; bh=kxCbb3 n94wwoT5PnKM9sj+pBC1gVGnWYj/dvpgzwXd0=; b=OBwVqEg4q0HhcrFq+7TEn/ okngHrQSm7xSRN1zuecxdBKGkyicfqAlVSWeiQbhogI4GZE6qTLX7lhPsw72VLwM 8H4YoQOp3GQMUccvUxfruHvsfhPHpLeJ9aJ4gU7F1vgQoRw7UxVsOWSCnFEFzo6L Qk+rx0VoxxkOKdT4xLHaSFB+/ixCPfTkS7r8jNOvL9hWLLgUf63qh/3DXEOvLxu7 G0Ec5C0HwCz2SPeBx5n5wTJmSRIA4ytGU1qildQY5G3EpUWDVaSdmCK7Vdh9/Fc+ b3F/xVZzXbiy+FMOScLFeI6qjQMewweYz2CmK34oba+0C4Zfl3Enci7V9Th9KyGQ == X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 3EA52E465E; Wed, 1 Aug 2018 14:15:14 -0400 (EDT) Subject: Re: Adding terminal title support for psqlrc To: ik , Tom Lane Cc: pgsql-general@postgresql.org References: <26302.1533131249@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com> Date: Wed, 1 Aug 2018 11:15:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/01/2018 10:55 AM, ik wrote: > hi, > > Thank you, it does not effect the terminal title. > > As Adrian answered me, it is not supported :/ I was wrong: https://petereisentraut.blogspot.com/2009/09/how-to-set-xterm-titles-in-psql.html To get this to work in Konsole I had to edit the profile to have Tab title format use %w (Window title set by shell). > > > > On Wed, Aug 1, 2018 at 4:47 PM, Tom Lane > wrote: > > ik > writes: > > Is there a way to add terminal title information for psqlrc that cn display > > what schema I am, operation that is execute and stuff like that? > > Most terminal programs recognize escape sequences to set the window > title.  So you could set values for PROMPTn that cause updates in > the title.  There's an example in > > https://www.postgresql.org/docs/devel/static/app-psql.html#APP-PSQL-PROMPTING > > > although it's just talking about a color change. > >                         regards, tom lane > > -- Adrian Klaver adrian.klaver@aklaver.com