From: | ik <idokan(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Adding terminal title support for psqlrc |
Date: | 2018-08-02 09:32:26 |
Message-ID: | CAOccsKAO8AbDR7CRywNqmEAeaOaNxp+D2WX_A5WL=Mvz8=BUmQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thank you, it works :)
https://github.com/ik5/dotfiles/blob/master/psqlrc
On Wed, Aug 1, 2018 at 9:15 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:
> 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(at)sss(dot)pgh(dot)pa(dot)us <mailto:
>> tgl(at)sss(dot)pgh(dot)pa(dot)us>> wrote:
>>
>> ik <idokan(at)gmail(dot)com <mailto:idokan(at)gmail(dot)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(dot)klaver(at)aklaver(dot)com
>
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2018-08-02 12:21:31 | Re: ProjectSet |
Previous Message | Oliver Kohll | 2018-08-02 09:17:22 | ProjectSet |