pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: ik <idokan@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: Adding terminal title support for psqlrc
Date: Wed, 1 Aug 2018 11:15:13 -0700
Message-ID: <59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com> (raw)
In-Reply-To: <CAOccsKCnSCQBKm9Ypw_pcxgemdtbAy59chTcMrnd6hnsUvrYdQ@mail.gmail.com>
References: <CAOccsKDqSfA8qRegi=NoOh8Qv1Uvnh9R8eZ_BKsnnUymRF8k3A@mail.gmail.com>
	<26302.1533131249@sss.pgh.pa.us>
	<CAOccsKCnSCQBKm9Ypw_pcxgemdtbAy59chTcMrnd6hnsUvrYdQ@mail.gmail.com>

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 <tgl@sss.pgh.pa.us 
> <mailto:tgl@sss.pgh.pa.us>> wrote:
> 
>     ik <idokan@gmail.com <mailto:idokan@gmail.com>> 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
>     <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




view thread (6+ messages)  latest in thread

Message-ID: <59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com>
Permalink:  ../59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com/
Also on:    postgresql.org/message-id/59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, idokan@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Adding terminal title support for psqlrc
  In-Reply-To: <59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com>
  References: <CAOccsKDqSfA8qRegi=NoOh8Qv1Uvnh9R8eZ_BKsnnUymRF8k3A@mail.gmail.com> <26302.1533131249@sss.pgh.pa.us> <CAOccsKCnSCQBKm9Ypw_pcxgemdtbAy59chTcMrnd6hnsUvrYdQ@mail.gmail.com> <59cf581d-a2ec-d381-b0c0-e5ca591938f2@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox