From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8376 invoked from network); 24 Nov 2002 12:23:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Nov 2002 12:23:33 -0000 Received: (qmail 8706 invoked by alias); 24 Nov 2002 12:23:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5508 Received: (qmail 8688 invoked from network); 24 Nov 2002 12:23:04 -0000 Message-ID: <64953.213.116.100.36.1038163772.squirrel@www.antrophia.com> Date: Sun, 24 Nov 2002 13:49:32 -0500 (EST) Subject: Colored prompt problem From: "Leon Mergen" To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, This is my first time posting to this mailing list, so if I do something wrong, please excuse me :) Anyway, I have recently (yesterday to be exact) install zsh... and I love it! After reading through some how-to's and faq's, I've come up with the following PROMPT in my ~/.zshrc file : PROMPT=$(echo '%B%{\033[33m%}%n@\033[31m%}%m\033[39m%}:\033[32m%}[%~]\033[00m%}\033[34m%}[%h]\033[00m%} %# %b% ' ) This one looks pretty cool I think (yellow user @ red hostname : [green dir] [blue count]) ... however, it has a disadvantage: when I enter long commands (such as "irssi --connect=irc.snt.utwente.nl") , at the point it should wrap to the next line (well, actually, a lot earlier, it tries to go to the next line after the "irc.snt" point) , instead of going to the next line, it completely clears out the line I'm currently at and starts at the beginning... I hope I kind of make sense, I personally think I need to "catch" some escape character or something... Hope someone can help me :) -- Grtz, Leon Mergen