From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1712 invoked by alias); 12 May 2011 18:11:38 -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: 16023 Received: (qmail 16993 invoked from network); 12 May 2011 18:11:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Thorsten Kampe Subject: Re: How to redirect output without escape sequences to a file Date: Thu, 12 May 2011 20:10:59 +0200 Message-ID: References: <110509080130.ZM19360@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: nat.scz.novell.com User-Agent: MicroPlanet-Gravity/3.0.4 * Bart Schaefer (Mon, 09 May 2011 08:01:30 -0700) > On May 8, 9:27pm, Thorsten Kampe wrote: > } I've modified my PS4 so it contains a little bit of colour[1]. > > I was going to suggest that you stop using the terminal escape > sequences directly and use the %F prompt escape instead: > > PS4='%F{cyan}%B+%b%f%1N[%i]%F{cyan}%B:%b%f ' I did that and this looks much more readable now. Unfortunately on a machine of mine with an older zsh (4.2.6) this displays as {cyan}. Whould it make sense to go back to the (older?) "autoload -U colors; colors"/"fg_bold[cyan]" invocation on this machine? Thorsten