This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 0/8] add terminal styling to gdb
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 7 Sep 2018 08:25:22 +0100
- Subject: Re: [RFC 0/8] add terminal styling to gdb
- References: <20180906211303.11029-1-tom@tromey.com>
Hi Tom,
> I've wanted gdb to use colors on the terminal for a while now. I've
> actually tried implementing this a few different ways at different
> times, the most successful approach so far being a colorizing frame
> filter.
>
> This series takes a more direct approach, namely integrating the code
> into gdb. The basic approach is to have gdb know how to emit ANSI
> terminal escape codes to control the color and style (currently just
> the intensity). Then, cli-out is changed to style certain fields as
> it emits them. However, because some places do not use ui-out, some
> ad hoc changes are also done.
>
> This series styles function names, file names, and variable names. It
> also styles the gdb welcome message for fun.
>
> I think my earlier patch to make the TUI understand ANSI terminal
> escapes will make this patch work there. (I have not tried this yet.)
>
> Other things could be styled as well. A few ideas I had:
This is going to be a very nice improvement, thank you!
I am a bit tied for time to take a first look at the implementation,
but the approach sounds good to me.
--
Joel