Re: color by default

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: color by default
Дата
Msg-id 20191231151800.GA3531@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: color by default  (Andreas Joseph Krogh <andreas@visena.com>)
Ответы Re: color by default  (Isaac Morland <isaac.morland@gmail.com>)
Список pgsql-hackers
On 2019-Dec-31, Andreas Joseph Krogh wrote:

> It's easier to spot errors/warnings when they are colored/emphasized imo. Much 
> like colored output from grep/diff; We humans have colored vision for a reason. 

I do use color output (and find it useful), for that reason.

I'm not sure that the documentation addition properly describes the
logic to be used; if it does, I'm not sure that the logic is really what
we want.  Is the logic in the docs supposed to be "last rule that
matches wins" or "first rule that matches wins"?  I think that should be
explicit.  Do we want to have NO_COLORS override the TERM heuristics?
(I'm pretty sure we do.)  OTOH we also want PG_COLORS to override
NO_COLORS.

Per https://no-colors.org (thanks for the link) it seems pretty clear
that people who don't want colors should be already setting NO_COLORS,
and everyone would be happy.  It's not just PG programs that are
colorizing stuff.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: color by default
Следующее
От: Isaac Morland
Дата:
Сообщение: Re: color by default