Any way to selectively color query output in psql?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Any way to selectively color query output in psql?
Дата
Msg-id CAKFQuwbAEU-HxLJPQN=eEXo-jFdskx8KCWhiOz3vmNEB4CWYCQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Any way to selectively color query output in psql?  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-general
Basically I want to write this:

psql -c "SELECT E'\e[1;33m Some Text Here \e[0m';"

And have just the text "Some Text Here" colored while everything else is default white.

The \e constructs are the ANSI color escapes which work when using echo -e

I am using bash 4.2.25(1) on Ubuntu 14.04

Is this possible?

Thanks!

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Postgresql 9.3 not coming up after restart in centos
Следующее
От: Gavin Flower
Дата:
Сообщение: Re: Any way to selectively color query output in psql?