Re: [PATCH 13/16] Make ANSI terminal escape sequences work in TUI

Tom Tromey
2018-12-28T19:42:47Z

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> PR tui/14126 notes that ANSI terminal escape sequences don't affect
Tom> the colors shown in the TUI. A simple way to see this is to try the
Tom> extended-prompt example from the gdb manual.

[...]

I found a bug in this patch:

Tom> + if (color.is_none ())
Tom> + *result = 1;

This should be -1, not 1.
Fixing this makes the output much less garish.

Tom