From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Any way to selectively color query output in psql? |
Date: | 2016-01-07 21:34:40 |
Message-ID: | CAKFQuwYbnSWMQcUyMm=ys6iyVXfG474--9dTpx0tHRup5zMn=w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Jan 7, 2016 at 2:32 PM, Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
wrote:
> 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? :-)
>
>
Touché
9.3.10
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2016-01-08 00:15:02 | Re: Trigger function interface |
Previous Message | Gavin Flower | 2016-01-07 21:32:46 | Re: Any way to selectively color query output in psql? |