From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14272 invoked from network); 6 May 2008 15:11:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 May 2008 15:11:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 64417 invoked from network); 6 May 2008 15:11:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 May 2008 15:11:02 -0000 Received: (qmail 28958 invoked by alias); 6 May 2008 15:10:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24946 Received: (qmail 28945 invoked from network); 6 May 2008 15:10:57 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 May 2008 15:10:57 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [85.115.41.190]) by bifrost.dotsrc.org (Postfix) with ESMTP id B2B4C80ED174 for ; Tue, 6 May 2008 17:10:53 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly22g.srv.mailcontrol.com (MailControl) with ESMTP id m46FASBY022619 for ; Tue, 6 May 2008 16:10:51 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 6 May 2008 16:10:07 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id m46FA7h7001038 for ; Tue, 6 May 2008 16:10:07 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id m46FA71C001035 for ; Tue, 6 May 2008 16:10:07 +0100 Message-Id: <200805061510.m46FA71C001035@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: random attribute stuff In-reply-to: <080506075838.ZM1161@torch.brasslantern.com> References: <200805060915.m469FeJP017551@news01.csr.com> <080506073442.ZM22499@torch.brasslantern.com> <200805061442.m46Eg7bN000588@news01.csr.com> <080506075838.ZM1161@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Tue, 06 May 2008 07:58:38 -0700." Date: Tue, 06 May 2008 16:10:07 +0100 From: Peter Stephenson X-OriginalArrivalTime: 06 May 2008 15:10:07.0572 (UTC) FILETIME=[45297940:01C8AF8B] X-Scanned-By: MailControl A-08-50-01 (www.mailcontrol.com) on 10.71.0.132 X-Virus-Scanned: ClamAV 0.91.2/7040/Tue May 6 03:52:15 2008 on bifrost X-Virus-Status: Clean Bart Schaefer wrote: > On May 6, 3:42pm, Peter Stephenson wrote: > } > } Bart Schaefer wrote: > } > Some people want the entire command line to look one way and the output > } > from the command to look another way, so they can easily tell what's a > } > command and what isn't when scrolling backward through buffered output. > } > } Right, but I'm not convinced it actually works. > > It almost certainly *won't* work except in the most simple cases now that > ZLE is doing its own highlighting effects. People are going to have to > decide whether they want that badly enough to use zle_highlight=(none). I tried it without any highlighting. > Inevitably someone will complain that ZLE should put back whatever effect > was there before when it turns on/off its own effects. That's probably doable in principle by tying the highlighting state to what came in with the prompt, but (i) I don't have a lot of interest in doing this since it's quite a complicated way of propagating a hack to get particular effects that's getting hackier as the highlighting code develops (ii) as I said, it doesn't seem to work very well anyway. It ought to be (but might turn out not to be) fairly easy to add a "default" element to zle_highlight that causes the given attributes to be used as the default set for the command line, which would probably work a lot better, and then deprecate any reliance on what the prompt happened to produce. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070