aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-03-14 17:31:38 +0200
committerEli Zaretskii <eliz@gnu.org>2019-03-14 17:31:38 +0200
commit3fff2c370cd658877be8107bfe9dde8dd0470b46 (patch)
tree2fec5daa7d3a7e0b6a3aa2114897758bfe2896f3 /gdb/ChangeLog
parentbe22c732bf873e0c7e8a08564c97cafdfcf153bb (diff)
downloadgdb-3fff2c370cd658877be8107bfe9dde8dd0470b46.zip
gdb-3fff2c370cd658877be8107bfe9dde8dd0470b46.tar.gz
gdb-3fff2c370cd658877be8107bfe9dde8dd0470b46.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 50cbd2e..6390295 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,19 @@
+2019-03-14 Eli Zaretskii <eliz@gnu.org>
+
+ 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.
+
+ * 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 Tom Tromey <tromey@adacore.com>
* source-cache.h (class source_cache) <get_source_lines>: Return