zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Andrey Borzenkov <arvidjaar@newmail.ru>, zsh-workers@sunsite.dk
Cc: Wael Nasreddine <mla@nasreddine.com>
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	[thread overview]
Message-ID: <080216010051.ZM30143@torch.brasslantern.com> (raw)
In-Reply-To: <200802161056.29466.arvidjaar@newmail.ru>

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.


  parent reply	other threads:[~2008-02-16  9:01 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 [this message]
2008-02-16 19:13 ` Bart Schaefer
2008-02-16 19:32   ` Bart Schaefer
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=080216010051.ZM30143@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=arvidjaar@newmail.ru \
    --cc=mla@nasreddine.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).