bug-ncurses
[Top][All Lists]
Advanced

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

XTerm: Incorrect Colors in Printed Output


From: admin
Subject: XTerm: Incorrect Colors in Printed Output
Date: Sun, 19 Nov 2023 08:58:31 -0600

Hi, again.

Does anyone know what the purpose of the following code is (from send_SGR of “print.c”):

#if OPT_ISO_COLORS && OPT_PC_COLORS
        if ((attr & FG_COLOR) && (fg != NO_COLOR)) {
                if (TScreenOf(xw)->boldColors
                    && fg > 8
                    && (attr & BOLD) != 0)
                        fg -= 8;
        }
#endif

The foreground is decremented by 8, and this results in incorrect colors for me (for any foreground color of index >= 128 combined with BOLD).

I cannot figure out what this code is trying to do, and commenting it out seems to resolve the issue. Is my XTerm built incorrectly?

Thank you.



reply via email to

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