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: [RFC 0/8] add terminal styling to gdb


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


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