From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7523 invoked from network); 31 Jan 1997 00:28:38 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 31 Jan 1997 00:28:38 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id TAA28848; Thu, 30 Jan 1997 19:22:34 -0500 (EST) Resent-Date: Thu, 30 Jan 1997 19:12:30 -0500 (EST) Message-ID: <19970130181401.PO21037@execpc.com> Date: Thu, 30 Jan 1997 18:14:01 -0600 From: aarons@execpc.com (Aaron Schrab) To: zsh-users@math.gatech.edu (zsh users mailing list) Subject: Re: problem with bold prompt References: <199701302313.SAA12620@rom.oit.gatech.edu> X-Mailer: Mutt 0.59.1 Mime-Version: 1.0 In-Reply-To: <199701302313.SAA12620@rom.oit.gatech.edu>; from Will Day on Jan 30, 1997 18:13:25 -0500 Resent-Message-ID: <"wTz7R3.0.Zy6.jZJyo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/642 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On 30 Jan 1997, willday@rom.oit.gatech.edu (Will Day) wrote: > This is a problem I've been fighting with for a long time, and which I only > recently began to grasp, when it got worse after I upgraded from 2.5.03 to > 3.0.2. :) > > My prompt is defined as: > export PS1="^[[1m${HOSTNAME}:^[[m%d) " > so that it appears as: > rom:/home/willday) > where the "rom" is bold. > > It looks like zsh is counting the formatting characters as printable > characters on the command-line. Under 2.5.03, this would screw up > command-recall, and ctrl-U line clearing. Put the formatting characters inside %{ %} pairs: export PS1="%{^[[1m%}${HOSTNAME}:%{^[[mi%}%d) " this tells zsh not to count them. -- Aaron Schrab Exec-PC Internet Systems Administration for auto info