From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21468 invoked by alias); 24 Mar 2016 17:33:13 -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: 21406 Received: (qmail 19699 invoked from network); 24 Mar 2016 17:33:12 -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=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=LCQ5kiU4NfORljt6N6FlffG8Mw6AO7HR2LqXq9O9NsU=; b=RvTHMNLMHtIEO0Ll/+PEWrLom0xuJTtYuB95hRXHE0ocUKmZYpLmBdZpDL78r8CGCJ r+KmhTmeZpwd8Uo6JQBUs6gM3VGKryTR2WP3KmzfC3a+qS1iFj61eh0wTyvigHaeVIlQ rCMeov92exxM4vmXZCK1DZchAA7Ev53HA95Xib48o/Lt9ORe1sZbEk0pUr88/7XxsjgS goDfRpSvsayZJz3vD4ONrPtQK7KBlnPhoKwoaSelzUPJbzqGvPRNC2F2pFSrNizinBWS 4yR/60WeHRLiCJNNVSLmtKIsTgSjUxXqSWOlvO+0xBwUlEGICZO5/Nxn9jCIGv87pxEw DVcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=LCQ5kiU4NfORljt6N6FlffG8Mw6AO7HR2LqXq9O9NsU=; b=XH5i2J2IqPX4dMFxLJvENzK7NFTX1AwEzWNw7eNu5eaETsXa8tYLA/GBqu3DKG31Jh Y34l5rfeXTk+PFUaGWctZwA1YrdBfxXH4IyML9UpAp45Vo7CgBsVNS7ttKwtig0dUquj 5bJCqKpHwFxauQt4XyeyA6ZsAzqJvZ9/B1x1fpOZXOKRlr0s3nUKt83Ph1bGqSQBcYGb 7rAuDzthUVQBf6/QgfvYV3Hw6WJxQ5U4erbDCP0qyIaZXyuJFcFaVdB+hYy2AqXvBc92 4h3VIPWTrwqDh+Tt+UqPAbENNHuB4td6EvcUInXh3l4g4Use/mxp5kSywOa4QpDb50HM F4EA== X-Gm-Message-State: AD7BkJLqjfqOrQ5o2Anjpl95nmAX46oH1+0GBC5Hdr0Ici9h5n+5DzV7rATdDqxrdGUVAQ== X-Received: by 10.98.71.92 with SMTP id u89mr14599616pfa.100.1458840790162; Thu, 24 Mar 2016 10:33:10 -0700 (PDT) From: Bart Schaefer Message-Id: <160324103347.ZM5300@torch.brasslantern.com> Date: Thu, 24 Mar 2016 10:33:47 -0700 In-Reply-To: <20160324103837.678f2f36@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: End boldface also ends background color" (Mar 24, 10:38am) References: <160323185356.ZM2458@torch.brasslantern.com> <20160324103837.678f2f36@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: End boldface also ends background color MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 24, 10:38am, Peter Stephenson wrote: } Subject: Re: End boldface also ends background color } } If you look at the definitions, you'll see that \e[1m turns on bold, } \e[7m reverse, \e[4m underline. The definitions mapping to exit reverse } and exit underline are \e[27m and \e[24m. Nothing maps to \e[21m that I } can see. 21m is double-underline, according to comments in Functions/Misc/colors, but it's not widely supported. The right thing for bold-off would be "normal" i.e. 22m, but as noted there is no termcap code for that. } Short of that, it's not going to work without rewriting } the code substantially to track the current mode as well as the modes } that need changing. Aren't we already tracking the current mode in a bitfield? Replies probably ought to start going to zsh-workers.