From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5626 invoked by alias); 23 Feb 2015 01:43:37 -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: 19895 Received: (qmail 23248 invoked from network); 23 Feb 2015 01:43:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no version=3.3.2 Date: Mon, 23 Feb 2015 02:36:21 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: ANSI bg colour outside of prompt area Message-ID: <20150223013621.GA21733@xvii.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20150222132310.GA18377@wintermute> <150222111007.ZM18687@torch.brasslantern.com> <54EA6200.1040007@eastlink.ca> <4348921424650217@web10g.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4348921424650217@web10g.yandex.ru> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6424-vl-r76280 (2015-02-19) On 2015-02-23 03:10:17 +0300, ZyX wrote: > I have tested `echo $'\e[41m' ; {command}` with the following > colored commands and here is what I have: > > eix | First line has red background after the text, to the very end. > hg diff | Same. > git diff | First line has text with red background, red ends as text ends. > grep | First file name has red background (multifile search) and nothing > | after it. Single file match has highlight up until the first match > | ends (match is highlighted). > ag | Again red background ends when the first highlighted string ends. > powerline | Red background appears on the first line and disappears completely > | when powerline outputs something. Similar with GNU ls: echo $'\e[41m'; ls --color The red background stops as soon as ls needs to use the normal color. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)