From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23580 invoked by alias); 18 Jun 2019 20:58:02 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 23566 invoked by uid 89); 18 Jun 2019 20:58:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mailsec101.isp.belgacom.be Received: from mailsec101.isp.belgacom.be (HELO mailsec101.isp.belgacom.be) (195.238.20.97) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Jun 2019 20:58:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1560891480; x=1592427480; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=sC3O4/EQZbGvdUoR3B8jdmHdoEPlV1/GlUGk3ELH9dk=; b=DFmkXunftkUaZhGKy9dm3TqfgZI/CXSj9u1FV2nHoAXvnRXT0aKAxmGp XXsrJxvr1iUp+rucfUQ9s2/EfxkiHg==; Received: from unknown (HELO md) ([109.128.218.96]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 18 Jun 2019 22:57:58 +0200 Message-ID: <1560891478.8865.5.camel@skynet.be> Subject: Re: [RFA 0/4] Improve "show style", use style in "help" and "apropos". From: Philippe Waroquiers To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org Date: Tue, 18 Jun 2019 20:58:00 -0000 In-Reply-To: <1560891176.8865.3.camel@skynet.be> References: <20190531131903.21203-1-philippe.waroquiers@skynet.be> <02aed9b6-1ce0-b48f-ed01-ef0fc0fa20b5@redhat.com> <1560888703.8865.1.camel@skynet.be> <87sgs6hb9f.fsf@tromey.com> <1560891176.8865.3.camel@skynet.be> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-06/txt/msg00363.txt.bz2 On Tue, 2019-06-18 at 22:52 +0200, Philippe Waroquiers wrote: > On Tue, 2019-06-18 at 14:46 -0600, Tom Tromey wrote: > > > > > > > "Philippe" == Philippe Waroquiers writes: > > > > > > > > (gdb) | with pagination off -- apropos -v breakpoint | less > > > > Philippe> Effectively, 'pagination off' and event worse 'style enabled off' > > Philippe> make it significantly more difficult to see where apropos -v > > Philippe> starts the doc of a new command. > > > > Maybe this command should still use styling? I wonder. > > Wondering ... > > At shell level, coloring seems to be disabled when piped. > E.g. > $ ls -l > .... files with some colors > $ ls -l | cat > .... same output, but no colors > $ ls has an option to control coloring. ls -l --color=always|cat will still be colored. So, we might add an option -style [on|off] to the GDB pipe_command, if we believe it should output styling sequence. Philippe