binutils-gdb/gdb/tui
Eli Zaretskii 3fff2c370c Fix colors in TUI mode in MS-Windows build with ncurses
The MS-Windows port of ncurses fails to switch to a color pair if
one or both of the colors are the implicit default colors.  This
change records the default colors when TUI is initialized, and
then specifies them explicitly when a color pair uses the default
colors.  This allows color styling in TUI mode on MS-Windows.

gdb/ChangeLog:
2019-03-14  Eli Zaretskii  <eliz@gnu.org>

	* tui/tui-io.c [__MINGW32__]: Include windows.h.  Declare
	ncurses_norm_attr.
	(tui_initialize_io) [__MINGW32__]: Record the default terminal
	colors in ncurses_norm_attr.
	(apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
	"none", replace it with the default color recorded in
	ncurses_norm_attr.
2019-03-14 17:31:38 +02:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-command.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-data.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-data.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-disasm.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-disasm.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-file.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-file.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-hooks.c Make TUI react to "set style enabled" 2019-03-14 05:47:10 -06:00
tui-hooks.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-interp.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-io.c Fix colors in TUI mode in MS-Windows build with ncurses 2019-03-14 17:31:38 +02:00
tui-io.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-layout.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-layout.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-out.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-out.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-regs.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-regs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-source.c Fix some valgrind errors in the TUI 2019-02-17 10:39:45 -07:00
tui-source.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-stack.c Change pid_to_str to return std::string 2019-03-13 13:50:13 -06:00
tui-stack.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-win.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-win.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-windata.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-windata.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-wingeneral.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-wingeneral.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-winsource.c Make TUI react to "set style enabled" 2019-03-14 05:47:10 -06:00
tui-winsource.h Make TUI react to "set style enabled" 2019-03-14 05:47:10 -06:00
tui.c Avoid compilation warnings on MinGW. 2019-03-02 15:22:11 +02:00
tui.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00