[RFC 2/3] Making ANSI terminal escape sequences work in TUI
Tom Tromey
tom@tromey.com
Thu Oct 11 23:04:00 GMT 2018
>>>>> "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
More information about the Gdb-patches
mailing list