Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ANSI bg colour outside of prompt area
- X-seq: zsh-users 19884
- From: junkcommander0@xxxxxxxxx
- To: zsh-users@xxxxxxx
- Subject: ANSI bg colour outside of prompt area
- Date: Sun, 22 Feb 2015 08:23:10 -0500
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author