Re: BUG #16108: Colorization to the output of command-line has unproperly behaviors at Windows platform

Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>

From: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Michail Nikolaev <michail.nikolaev@gmail.com>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, "Tang, Haiying" <tanghy.fnst@cn.fujitsu.com>, Thomas Munro <thomas.munro@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-03-02T09:01:42Z
Lists: pgsql-bugs, pgsql-hackers
On Mon, Mar 2, 2020 at 7:48 AM Michael Paquier <michael@paquier.xyz> wrote:

>
> On top of that, and that's a separate issue, I have noticed that we
> have exactly zero documentation about PG_COLORS (the plural flavor,
> not the singular), but we have code for it in common/logging.c..
>

 Yeah, there is nothing about it prior to [1]. So, this conversation will
have to be carried over there.


> Anyway, committed down to 12, after tweaking a few things.
>

Thank you.

[1]
https://www.postgresql.org/message-id/bbdcce43-bd2e-5599-641b-9b44b9e0add4@2ndquadrant.com

Regards,

Juan José Santamaría Flecha

Commits

  1. Fix command-line colorization on Windows with VT100-compatible environments