The man page for terminfo specifically states that BLACK has a value of zero. This holds true for every terminal I have seen except for gnome-termainal under Gentoo. I have seen BLACK being defined as either color 9 or color 15 under gentoo which is problematical for applications that parse terminfo files and compile escape sequences manually (as opposed to going through ncurses etc). BLACK should always be defined as color zero!
Example code to show bug #include <unistd.h> #include <stdio.h> void main(void) { unsigned char setab1[] = // sete background color to zero { 0x1b, 0x5b, 0x34, 0x30, 0x6d }; unsigned char setab2[] = // set background color to nine { 0x1b, 0x5b, 0x34. 0x39, 0x6d }; write(1, &setab1[0], 5); printf("color zero displays gray\n"); write(1, &setab2[0], 5); printf("color 9 displays black\n"); }
Please write the full package name in the summary. Why do you think this is a bug on Gentoo/the ebuild?
Please report this bug upstream and add a link to the ticket here. https://gitlab.gnome.org/GNOME/gnome-terminal/issues
It's black fine for me. If you use "system theme", that is. If you don't, or your system theme ends up like that, then yes, it is grey. It is only a matter of defaults. My personal opinion is that black background should NOT be fully black by default, because it obscures the text beneath it and that's not a good default behaviour.