This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 00/16] Add styling to the gdb CLI and TUI


> Date: Fri, 01 Mar 2019 09:47:23 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> CC: gdb-patches@sourceware.org
> 
> > Eli> Will the Windows TUI build support styling out of the box?  It uses
> > Eli> ncurses.
> > 
> > I think it should work, but you'd have to "set style enabled on" first.
> 
> For the record, it doesn't work in GDB 8.2.90, even after I disabled
> the test for $TERM being defined in the environment.  I will try to
> find out why at some point.

OK, I now know why.  The colors do work, but only if the style
specifies both the foreground and the background colors explicitly;
specifying just one of them causes no colors at all (but other
attributes, like intensity, do still work).

I think this means that the MS-Windows console belongs to the devices
which don't support resetting to the default colors.  I even tried to
add the call to assume_default_colors, per the ncurses docs, to no
avail.

Are there any other consoles out there with such an issue?

In any case, I think we should at least tell in the manual that on
some systems the color pairs need to be specified completely, even if
only one of the two colors changes from the default.  Does anyone have
ideas how to do better than just documenting this?  Let the user
define the default fore- and back-ground colors, perhaps?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]