From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5044 invoked by alias); 15 Jan 2013 18:47:12 -0000 Received: (qmail 5034 invoked by uid 22791); 15 Jan 2013 18:47:11 -0000 X-SWARE-Spam-Status: No, hits=-4.7 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-wi0-f181.google.com (HELO mail-wi0-f181.google.com) (209.85.212.181) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Jan 2013 18:47:05 +0000 Received: by mail-wi0-f181.google.com with SMTP id hq4so451251wib.2 for ; Tue, 15 Jan 2013 10:47:04 -0800 (PST) X-Received: by 10.180.93.133 with SMTP id cu5mr5298580wib.32.1358275612918; Tue, 15 Jan 2013 10:46:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.9.198 with HTTP; Tue, 15 Jan 2013 10:46:32 -0800 (PST) In-Reply-To: <87fw22jq1g.fsf@fleche.redhat.com> References: <87fw22jq1g.fsf@fleche.redhat.com> From: Kevin Pouget Date: Tue, 15 Jan 2013 18:47:00 -0000 Message-ID: Subject: Re: Colors in gdb To: Surya Kiran Gullapalli , Tom Tromey Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00064.txt.bz2 On Tue, Jan 15, 2013 at 6:48 PM, Tom Tromey wrote: > > >>>>> "Surya" == Surya Kiran Gullapalli writes: > > Surya> I tried the python api to do the color printing by using ansi escape > Surya> sequences. They did not work. Is it supported in gdb ? If so, How ? > > It isn't directly. I wouldn't mind clean patches to implement a feature > like this, though. > > Tom Hello, I have colors in my gdb Python prompt since quite a while, I wonder what could be different in the context of prompt printing and pretty printing ? the code I use comes from [1] Kevin 1: http://gitorious.org/misc-gdb-stuff/misc-gdb-stuff/blobs/master/misc_gdb/gaudy_prompt.py