[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7d67d9e72974472cc61dba6d8bdaf79a@manjaro.org>
Date: Thu, 23 May 2024 15:23:05 +0200
From: Dragan Simic <dsimic@...jaro.org>
To: Gedalya <gedalya@...alya.net>
Cc: Sirius <sirius@...dheim.com>, netdev@...r.kernel.org
Subject: Re: iproute2: color output should assume dark background
On 2024-05-23 15:04, Gedalya wrote:
> On 5/23/24 8:36 PM, Dragan Simic wrote:
>> On 2024-05-23 09:57, Sirius wrote:
>> How about this as a possible solution...
>
> For what problem?
Obviously, for the problem your patch attempts to solve.
> Yes I asked Debian in the first place to leave colors disabled by
> default, but nevertheless `ip` is still broken for most users if and
> when colors are enabled, whether at runtime or build time.
Well, the coloring support in ip(8) can't be broken if the users
configure it at runtime accordingly, i.e. following the background
color configured in their terminal emulator(s), right? Or am I
misunderstanding something?
>> If Debian configures the terminal emulators it ships to use dark
>> background,
>
> Do they? Or is that the nearly universal default?
Frankly, I don't know for sure because I don't use many different
terminal emulators, but you as the submitter of this patch perhaps
should know that better. However, terminal emulators must be
configured somehow, because it makes no sense whatsoever that they're
having their background colors hardcoded.
>> why not configure the ip(8) utility the same way, i.e. by setting
>> COLORFGBG in files placed in the /etc/profile.d directory,
>
> COLORFGBG where set is automatically set by the terminal emulator. It
> would be more sensible to add this feature to more terminal emulators,
> upstream.
Of course, but that would take a lot of time, both to implement it
everywhere and for the new feature to reach the users. Shipping
a few additional files in the /etc/profile.d directory would be a
reasonable stopgap measure.
> Should Debian come up with a patch that magically adjusts this
> variable every time the user changes their background color (in one
> terminal emulator... and another color in another terminal
> emulator...?)
That's a valid concern. Perhaps some documentation could be provided,
to help the users who alter their background colors.
> And what about linux virtual terminals (a.k.a non-graphical consoles)?
In my 25+ years of Linux experience, I've never seen one with a
background
color other than black.
> In summary, if the best we can do is manually set COLORFGBG when using
> a light background then that's the best we can do. I don't see how
> Debian can possibly help with that.
>
> On the iproute2 side, a rock-bottom ultimate default background color
> assumption will always be needed and that should be dark.
As others already pointed out, "should be light" or "should be dark"
can be seen as personal preference.
> Yes, echo -ne '\e]11;?\a' works on _some_ (libvte-based) terminals but
> not all. And a core networking utility should be allowed to focus on,
> ehhm, networking rather than oddities of a myriad terminals.
In an ideal world, yes.
Powered by blists - more mailing lists