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 24559
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Fw: Phil's prompt is not working when LANG is set to UTF-8
- Date: Sat, 16 Feb 2008 01:00:51 -0800
- Cc: Wael Nasreddine <mla@xxxxxxxxxxxxxx>
- In-reply-to: <200802161056.29466.arvidjaar@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080215235241.2f255730@pws-pc> <200802161056.29466.arvidjaar@xxxxxxxxxx>
On Feb 16, 10:56am, Andrey Borzenkov wrote:
}
} Now downside of course is, it works only with patched shell ...
I'll describe a workaround but I don't have time now to actually
write code for it:
(1) Emit %{, the sequence for "save cursor position", %}
(2) Emit ${#PR_FILLBAR} spaces.
(3) Emit %{, "restore cursor position", then the actual line drawing
characters (which will overwrite the spaces), then %}
This should work in any shell, and should work whether the shell is
correctly calculating the width of the ACS characters or not, and
should even work if the ACS characters are not being used.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author