Support styling on native MS-Windows console
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index de5e74a1c5950b805bee5e115c825e81288aed1e..bb10c7d447111a1f6f7328e098f1e2c726a0007e 100644 (file)
@@ -1,3 +1,21 @@
+2019-03-08  Eli Zaretskii  <eliz@gnu.org>
+
+       Support styling on native MS-Windows console
+
+       PR/24315
+       * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
+       on MS-Windows if $TERM is not defined.
+
+       * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
+
+       * posix-hdep.c (gdb_console_fputs):
+       * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
+       functions.
+       * ui-file.h (gdb_console_fputs): Add prototype.
+
+       * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
+       back to fputs only if the former returns zero.
+
 2019-03-07  Tom Tromey  <tom@tromey.com>
 
        * symmisc.c (print_symbol_bcache_statistics): Update.
This page took 0.025515 seconds and 4 git commands to generate.