This is the mail archive of the gdb@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: Colors in gdb


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.


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