Re: Any way to selectively color query output in psql?

Поиск
Список
Период
Сортировка
От Gavin Flower
Тема Re: Any way to selectively color query output in psql?
Дата
Msg-id 568ED97E.5040400@archidevsys.co.nz
обсуждение исходный текст
Ответ на Any way to selectively color query output in psql?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Any way to selectively color query output in psql?
Список pgsql-general
On 08/01/16 10:25, David G. Johnston wrote:
> 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.
>
But what is the version of Postgres?  :-)



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Any way to selectively color query output in psql?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Any way to selectively color query output in psql?