From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11270 invoked from network); 24 Nov 2002 18:42:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Nov 2002 18:42:32 -0000 Received: (qmail 25276 invoked by alias); 24 Nov 2002 18:42:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5510 Received: (qmail 25262 invoked from network); 24 Nov 2002 18:42:11 -0000 Date: Sun, 24 Nov 2002 19:36:33 +0100 From: DervishD To: Leon Mergen Cc: zsh-users@sunsite.dk Subject: Re: Colored prompt problem Message-ID: <20021124183632.GA46@DervishD> Mail-Followup-To: Leon Mergen , zsh-users@sunsite.dk References: <64953.213.116.100.36.1038163772.squirrel@www.antrophia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <64953.213.116.100.36.1038163772.squirrel@www.antrophia.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Leon :) > PROMPT=$(echo > '%B%{\033[33m%}%n@\033[31m%}%m\033[39m%}:\033[32m%}[%~]\033[00m%}\033[34m%}[%h]\033[00m%} > %# %b% ' ) It lacks lots of '%{'. This is the reason it wraps badly. I haven't the time to test where the lacking '%{' must go. I've put all them at the beginning and it doesn't wrap bad. For every '%}' must be an opening '%{', and you must see the rules (see the manual) for places in the PROMPT where you can and cannot change the cursor position. Good luck ;)) Raśl