Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fw: Phil's prompt is not working when LANG is set to UTF-8
- X-seq: zsh-workers 24561
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Fw: Phil's prompt is not working when LANG is set to UTF-8
- Date: Sat, 16 Feb 2008 11:32:13 -0800
- In-reply-to: <080216111335.ZM17124@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080215235241.2f255730@pws-pc> <080216111335.ZM17124@xxxxxxxxxxxxxxxxxxxxxx>
On Feb 16, 11:13am, Bart Schaefer wrote:
}
} Does it matter where %G appears? %{...%7G...%} ?
} What if you use it more than once, as in %{...%7G...%3G%} ?
Ooh, and what about negative numbers? Can one say %-4G to mean that
the sequence actually moved the cursor to the LEFT four positions?
*That* could be really useful.
Another idea: How about sequences that actually move the cursor?
%H and %V for horizontal/vertical?
%4H -> move cursor four spaces to the right
%5V -> move cursor five lines down
%{%-6H%} -> move cursor six spaces to the left, but pretend you didn't
If %} also remembered the cursor position, then you could also have:
%P -> "pop" cursor back to where it was at the end of the last %{...%}
This may be getting a little bit too far out there.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author