Re: Colors in gdb

shawn wilson
2013-01-20T15:39:47Z

On Sun, Jan 20, 2013 at 10:29 AM, Robert Dewar <dewar@adacore.com> wrote:
> On 1/20/2013 10:13 AM, Matt Rice wrote:
>
>> maybe i'm old in not liking the idea of making these work with the
>> standard 'print' command, because the escape sequences are terminal
>> type dependent, which is IMO fine for a prompt set by a gdbinit, but
>> less so for a pretty printer distributed with a library...
>> this opinion is only strengthened by considering a std::string
>> containing an escape sequence.
>
>
> I strongly dislike ANY color stuff creeping into gdb output. Color
> stuff is a big menace when stuff is saved to files, or pasted and
> emailed etc etc.
>
>

Most programs will properly deal with colors (ANSI) if you let them. ie, less -R
Though, I agree, color should *never* be the default.