Re: Adding terminal title support for psqlrc - Mailing list pgsql-general

From Tom Lane
Subject Re: Adding terminal title support for psqlrc
Date
Msg-id 26302.1533131249@sss.pgh.pa.us
Whole thread Raw
In response to Adding terminal title support for psqlrc  (ik <idokan@gmail.com>)
Responses Re: Adding terminal title support for psqlrc
List pgsql-general
ik <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

although it's just talking about a color change.

            regards, tom lane


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Adding terminal title support for psqlrc
Next
From: Tom Lane
Date:
Subject: Re: Template0 datfrozenxid age is 160million and progressing