Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Count only visible characters?
- X-seq: zsh-users 14989
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Count only visible characters?
- Date: Fri, 09 Apr 2010 11:13:44 +0200
- In-reply-to: <201004091102.55291.joke@xxxxxxxxx> (Joke de Buhr's message of "Fri, 9 Apr 2010 11:02:55 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <loom.20100409T002951-342@xxxxxxxxxxxxxx> <201004091102.55291.joke@xxxxxxxxx>
Joke de Buhr wrote:
> Since you are using prompt expansion you should always escape the color codes
> with "%{...%}". That's the only way zsh can calculate the length of the prompt
> line correctly. Otherwise the cursor will not be positioned at the end of the
> visual end.
>
> testing="%{%F{green}%}hello"
No, with %F{...}...%f he does *not* need to wrap things in %{...%}.
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author