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


> 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.


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