Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ANSI bg colour outside of prompt area
- X-seq: zsh-workers 34620
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxx
 
- Subject: Re: ANSI bg colour outside of prompt area
 
- Date: Mon, 23 Feb 2015 08:47:50 -0800
 
- In-reply-to: <87fv9wuc6z.fsf@gmail.com>
 
- List-help: <mailto:zsh-workers-help@zsh.org>
 
- List-id: Zsh Workers List <zsh-workers.zsh.org>
 
- List-post: <mailto:zsh-workers@zsh.org>
 
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
 
- References: <20150222132310.GA18377@wintermute>	<150222111007.ZM18687@torch.brasslantern.com>	<20150222200735.GA14096__25621.2553395473$1424635776$gmane$org@wintermute>	<87fv9wuc6z.fsf@gmail.com>
 
On Feb 23, 11:58am, Christian Neukirchen wrote:
}
} In xterm and urxvt, you can do
} 
} printf '\033]10;%d\a\033]11;%d\a' $fgcolor $bgcolor
Hmm, that didn't work for me -- it did nothing in xterm, and in urxvt it
changed the background but not the foreground.
Incidentally $fgcolor and $bgcolor there are numeric codes, not escape
sequences.  If you do
    autoload colors
    colors
then you can use e.g. $color[yellow] to get the numeric code.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author