bug-gettext
[Top][All Lists]
Advanced

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

Detecting `colors` property on *other* terminals


From: Christian Parpart
Subject: Detecting `colors` property on *other* terminals
Date: Thu, 2 Jan 2025 22:47:51 +0100

Hi guys,

I was just trying out `msgcat --color=test` on the terminal I am developing since quite some years (Contour). I first realized that the hue/saturation section looks quite odd. I checked out your gettext source code and figured out that I need to bump up the `colors` terminfo entry from 256 to 32767. All good, but I also need to pretend to be something that begins with "xterm" or ends with "-256color". I think BOTH is wrong, so I'd prefer the whole `if`-statement in 

    libtextstyle/gnulib-local/lib/term-ostream.oo.c around line 2676

to not hard-code these but think more open. Of course, I could now ask you to add "contour" TERM env var to your list. But maybe we can achieve something more open, because there are plenty of other new terminal emulators rising in past years as well (Ghostty, WezTerm, foot, ...).

I suggest just checking for the `colors` terminfo itself to determine how many colors are supported. Would that be possible? Or do you see any other solution here?

p.s.: I am not subscribed to this list. I still hope this message will arrive to you and I will be able to get your replies in my inbox.

Best regards,
Christian Parpart.

reply via email to

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