From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1019 invoked by alias); 22 Feb 2015 13:23:15 -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: 19884 Received: (qmail 5965 invoked from network); 22 Feb 2015 13:23:13 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=NlFsakFcVKVXbPVVvUe9p6hosw0vebg2Fp9W4ka21HI=; b=XJ7xCIya4I/z0m+ECr3+PnaICbRBzzwTkGahQJwp5TH9ZPrGSpALkUV9P9WzibBmsf HybbRtibikrvTS6/j98tiVJRCita3aBg0JSPEevEnQqr4u+UTDx8BAO0x5HHy97/FEay Ja5PbFyidSwSs9RWyggaCbBE8zggmugcoppdZT1uE/IVuBVk6fomOHOZRbs1c3JJTIJf 4rgraVmaVoDJUAZMzhoBbakuFXjQnxXYTwmvT6my1R5dDwkh+gi5tCrwHHeumFodfPjb jDpGNZnQ1PzBbAoHxhLzpbcdLJL3y16GzrxK8qga4kmGTOTgZCXLra0UhwspwKvuLHvP TCWw== X-Received: by 10.107.131.83 with SMTP id f80mr8360409iod.50.1424611391764; Sun, 22 Feb 2015 05:23:11 -0800 (PST) Date: Sun, 22 Feb 2015 08:23:10 -0500 From: junkcommander0@gmail.com To: zsh-users@zsh.org Subject: ANSI bg colour outside of prompt area Message-ID: <20150222132310.GA18377@wintermute> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Hey Guys! This is my first ever mailing list post, please let me know if I'm doing this improperly!! I was wondering if anyone has had any success setting BG colours in their terminal with ANSI escape sequences or with some other method. I had some aliases with escape sequences that I used for bash and shell that would change the background colour. The colour was never reset, and clearing the screen would change the entire terminal's background colour. ex: echo -ne "\033[1;33;43m" In zsh, the background color gets reset once the characters have been printed. ex: kecho -ne "\033[1;33;43m abcdefg" I've tried using zle_highlight, or appending to the end of PROMPT, but (as documented) it only colours the editeable lines in the terminal: ex: zle_highlight=(default:bg=yellow); PROMPT="%K%{yellow%}$PROMPT" I also came across a neat tweak on the mailing list that allows you to change the colour of errors (which is neat, but still not what I'm looking for): ex: preexec() { echo -en "preexec () { echo -n "\033[11;43m"; } I'm running out of steam though I hoped maybe that precmd or something like that might yield some results but I'm a little stuck at the moment. Any chance that any of you might be able to nudge me in a different direction? Thanks Again, - Will