This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 2/3] Making ANSI terminal escape sequences work in TUI
- From: Tom Tromey <tom at tromey dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 11 Oct 2018 17:03:50 -0600
- Subject: Re: [RFC 2/3] Making ANSI terminal escape sequences work in TUI
- References: <20180903184300.9961-1-tom@tromey.com> <20180903184300.9961-3-tom@tromey.com>
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> This patch fixes the problem by adding a simple ANSI terminal sequence
Tom> parser to gdb. These sequences are decoded and those that are
Tom> recognized are turned into the appropriate curses calls.
I've extended this to colorize the source display (and "list" output)
using GNU Source Highlight. So I plan to push this series in soon, so I
can submit that.
GNU Source Highlight seems adequate, though under-maintained; it hasn't
had a release in a while and doesn't (gasp) have a Rust higlighter. I'm
considering adding a Python API instead and switching to Pygments. I
hate to lose the GNU connection, though. Let me know what you think.
Tom