From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4297 invoked by alias); 24 Mar 2016 21:41:52 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21411 Received: (qmail 9481 invoked from network); 24 Mar 2016 21:41:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=ame79MgikyBtdsSaeN5UFdmgsAukJki0t5P2/nJKTPA=; b=T8ZuX7NI54rsH7W+j5GYa7KS/T/n8iWNOpXVyv5ArxDeJDw7VYyhAJUwf61qWz1vpp gc+FOmRpIuWBxaJH+XSpoKPtXXRmAZRH6qKStUcX/DWyclsmaMXiMl6y8OWWqkoxXSN7 /Gw6iby0Dj5NdK/Ynam3kn6Ajx1//56knl4+nb9zRkx9iVANmXu7W4sPIlGEkS3pEaWA sV8FmwKiqRyfAl60suKkXF0CNQLL7MzEmFOk3IMb7OZROy58S6avhU4xFC9OOb6JYAjx GpGeXYjfY1w0yK7Ldqb0ZVvcxe3J+BA4NmOxjY0evRAjtMI2FCsk58XwvclSxrAY1pCl sf2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=ame79MgikyBtdsSaeN5UFdmgsAukJki0t5P2/nJKTPA=; b=TwxlHmODQ6nDxSXE90GZ2IrJUKKbh2eE+KvqhpVv29Yc7xhZSHn69soI/7UAGLkvfj ier3UjnrWWAyirxpgejzzPszs3wIoB52eiruuO48wU3R0HGWXTBJFcq/LVl/6dO+civA QA2eOvAvFbWE+NuCE/hF5kJPBsXSXvILMeT/wxS4JOFOjq4pU6GqiLPCSkYA6l+nDFm4 O1nfsxDnuXaI+hMc2/O7wpaQcJhsw3DR9nNpjz2U5JmuoK2ROgHKJ+gJDVbyArnTx5dx VAq+fbMrtD1Ixhp8jzMxYOLB2AORmB8j22sAED46pIULe3V9nnA+2bVzhEWRBJAQXtqZ l1Pw== X-Gm-Message-State: AD7BkJKaM60x8D88UdRHEtAgtQ2dBDptlgHh6o8RoLNncU86XKV9B0gVUnHslAYXF1v0g079iXKpaDa3TME5pg== MIME-Version: 1.0 X-Received: by 10.194.81.103 with SMTP id z7mr11766755wjx.25.1458855242531; Thu, 24 Mar 2016 14:34:02 -0700 (PDT) In-Reply-To: <20160324182026.GA20669@chaz.gmail.com> References: <160323185356.ZM2458@torch.brasslantern.com> <20160324103837.678f2f36__45846.6877033517$1458816008$gmane$org@pwslap01u.europe.root.pri> <20160324182026.GA20669@chaz.gmail.com> Date: Thu, 24 Mar 2016 14:34:02 -0700 Message-ID: Subject: Re: End boldface also ends background color From: Bart Schaefer To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Thu, Mar 24, 2016 at 11:20 AM, Stephane Chazelas wrote: > > In short there's no guarantee that resetting one attribute will > not reset others. Perhaps what we should do is simply document that %B %U %S %F{} are not guaranteed to nest. For example: print -P '%F{red} red %F{blue} blue %f oops, not red %f' Then people know that they might need to write %U%Bbold-underline%b%Uunderline%u if that's what they mean (but they might not get the underline in bold-underline because %B might reset it). Or just use $fg et al. from colors; so what if it's a bit verbose? How often are you re-typing it?