Re: Adding terminal title support for psqlrc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Adding terminal title support for psqlrc
Дата
Msg-id 26302.1533131249@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Adding terminal title support for psqlrc  (ik <idokan@gmail.com>)
Ответы Re: Adding terminal title support for psqlrc  (ik <idokan@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Adding terminal title support for psqlrc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Template0 datfrozenxid age is 160million and progressing