Any way to selectively color query output in psql? - Mailing list pgsql-general

From David G. Johnston
Subject Any way to selectively color query output in psql?
Date
Msg-id CAKFQuwbAEU-HxLJPQN=eEXo-jFdskx8KCWhiOz3vmNEB4CWYCQ@mail.gmail.com
Whole thread Raw
Responses Re: Any way to selectively color query output in psql?  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: Postgresql 9.3 not coming up after restart in centos
Next
From: Gavin Flower
Date:
Subject: Re: Any way to selectively color query output in psql?