From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29908 invoked by alias); 20 Jan 2013 15:39:47 -0000 Received: (qmail 29900 invoked by uid 22791); 20 Jan 2013 15:39:47 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lb0-f178.google.com (HELO mail-lb0-f178.google.com) (209.85.217.178) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Jan 2013 15:39:41 +0000 Received: by mail-lb0-f178.google.com with SMTP id n1so1420906lba.37 for ; Sun, 20 Jan 2013 07:39:39 -0800 (PST) X-Received: by 10.112.88.97 with SMTP id bf1mr6370639lbb.64.1358696379868; Sun, 20 Jan 2013 07:39:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.97.131 with HTTP; Sun, 20 Jan 2013 07:39:19 -0800 (PST) In-Reply-To: <50FC0D53.7020403@adacore.com> References: <87fw22jq1g.fsf@fleche.redhat.com> <8738y2jmmb.fsf@fleche.redhat.com> <50FC0D53.7020403@adacore.com> From: shawn wilson Date: Sun, 20 Jan 2013 15:39:00 -0000 Message-ID: Subject: Re: Colors in gdb To: Robert Dewar Cc: Matt Rice , Tom Tromey , Kevin Pouget , Surya Kiran Gullapalli , gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00069.txt.bz2 On Sun, Jan 20, 2013 at 10:29 AM, Robert Dewar 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.