emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ansi-color uses the same values for fore- and background colours


From: Jim Porter
Subject: Re: Ansi-color uses the same values for fore- and background colours
Date: Wed, 9 Aug 2023 09:46:27 -0700

On 8/9/2023 6:28 AM, Eli Zaretskii wrote:
From: Tony Zorman <tonyzorman@mailbox.org>
Date: Wed, 09 Aug 2023 14:10:44 +0200

by default, all of the `ansi-color-«COLOUR»' faces (defined in
`ansi-color.el') set the foreground and background colour to the exact
same value.

I believe this is intentional: that's how ANSI SGR sequences work on
terminals, right?

Yes. Emacs *could* color the foreground and background differently, but I don't believe it should (users are free to customize things however they like, of course). Every terminal emulator I'm aware of uses the same palette for foreground and background colors, so I think we should follow suit.

Instead, the goal should be to ensure a reasonable level of contrast between commonly-used color pairs of different foregrounds/backgrounds. At minimum, SGR white or black on any of the other basic colors should be readable.

I don't think there's a bug here.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]