From: Bart Schaefer <schaefer@brasslantern.com>
To: "Zsh Hackers' List" <zsh-workers@sunsite.dk>
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 [thread overview]
Message-ID: <080216113213.ZM17159@torch.brasslantern.com> (raw)
In-Reply-To: <080216111335.ZM17124@torch.brasslantern.com>
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.
next prev parent reply other threads:[~2008-02-16 19:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-15 23:52 Peter Stephenson
2008-02-16 7:56 ` Andrey Borzenkov
2008-02-16 8:50 ` Wael Nasreddine
2008-02-16 9:00 ` Bart Schaefer
2008-02-16 19:13 ` Bart Schaefer
2008-02-16 19:32 ` Bart Schaefer [this message]
2008-02-17 16:43 ` Peter Stephenson
2008-02-17 17:40 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=080216113213.ZM17159@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).