This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 00/16] Add styling to the gdb CLI and TUI
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 28 Nov 2018 09:02:15 +0200
- Subject: Re: [PATCH 00/16] Add styling to the gdb CLI and TUI
- References: <20181128001435.12703-1-tom@tromey.com>
> From: Tom Tromey <tom@tromey.com>
> Date: Tue, 27 Nov 2018 17:14:19 -0700
>
> This series doesn't support the Windows console. I don't know
> anything about it. So, it defaults to disabling styling on Windows
> hosts. This could be fixed by doing something like what the TUI does:
> filter escape sequences from the output and apply them by some other
> means.
Will the Windows TUI build support styling out of the box? It uses
ncurses.
And I don't think I understand what you mean by "filter escape
sequences from the output". Where (on what level) would such filter
be installed, given that output is written directly to the console?
I see that you introduced the emit_style_escape function that switches
styles. What I don't think I understand is whether it will work to
have a Windows implementation of that that calls a function which
causes the text output after that to use given colors? It seems it
will, because the code calls emit_style_escape before and after each
string, but I cannot be sure.
Thanks.