Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689330 - x11-terms/gnome-terminal Black is not color 0
Summary: x11-terms/gnome-terminal Black is not color 0
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-05 16:50 UTC by Mark I Manning IV
Modified: 2019-07-06 18:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark I Manning IV 2019-07-05 16:50:37 UTC
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!
Comment 1 Mark I Manning IV 2019-07-05 17:16:44 UTC
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");
}
Comment 2 Jonas Stein gentoo-dev 2019-07-06 14:22:36 UTC
Please write the full package name in the summary.
Why do you think this is a bug on Gentoo/the ebuild?
Comment 3 Jonas Stein gentoo-dev 2019-07-06 16:55:40 UTC
Please report this bug upstream and add a link to the ticket here.
https://gitlab.gnome.org/GNOME/gnome-terminal/issues
Comment 4 Mart Raudsepp gentoo-dev 2019-07-06 18:52:41 UTC
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.