Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colored prompt problem
- X-seq: zsh-users 5510
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Leon Mergen <leon@xxxxxxxxxxxxx>
- Subject: Re: Colored prompt problem
- Date: Sun, 24 Nov 2002 19:36:33 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <64953.213.116.100.36.1038163772.squirrel@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: Leon Mergen <leon@xxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <64953.213.116.100.36.1038163772.squirrel@xxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author