zsh-workers
 help / color / mirror / code / Atom feed
From: Wael Nasreddine <mla@nasreddine.com>
To: 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 09:50:41 +0100	[thread overview]
Message-ID: <20080216085041.GA12955@phoenix.nasreddine.info> (raw)
In-Reply-To: <200802161056.29466.arvidjaar@newmail.ru>

[-- Attachment #1: Type: text/plain, Size: 1784 bytes --]

This One Time, at Band Camp, Andrey Borzenkov <arvidjaar@newmail.ru> said, On Sat, Feb 16, 2008 at 10:56:25AM +0300:
> On Saturday 16 February 2008, Peter Stephenson wrote:
> > How about the following tweak to prompts to support this?  The upshot is
> > that you include any funny characters in %{...%G%} where the %G for
> > `glitch' (which may be repeated or take a numeric argument) indicates a
> > screen cell taken up by the sequence. 

> Yes, I was about to try the same today morning (you have to sleep on it);
> but I likely would not end up with such elegant solution.

> > I like this because it uses 
> > facilities that have been present in the shell for a long time and hence
> > was trivial to implement and might work.

> > I played with this in simple cases, but would anybody like to confirm
> > this works in the cases that matter (and maybe produce an updated Phil's
> > Prompt)? 

> I confirm that this works and updated prompt is attached. Wael, does it work
> for you with this patch applied?

> Now downside of course is, it works only with patched shell ...

> > To put it another way:  I am happy to support this fix but 
> > have no interest in doing anything with it myself.

> > I think this is clean and useful enough that I will commit it anyway.


OMG it finally works... Thank you so much guys, thanks a lot Peter...

BTW don't Cc to me anymore, I've switched my subscription from
-users to -workers

Thanks again... I use it daily so if anything's wrong I'll notify
you...

-- 
Wael Nasreddine
http://wael.nasreddine.com
PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724  DE12 5565 3945 C8DD 18A2

.: An infinite number of monkeys typing into GNU emacs,
   would never make a good program. (L. Torvalds 1995) :.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-02-16  8:51 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 [this message]
2008-02-16  9:00   ` Bart Schaefer
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=20080216085041.GA12955@phoenix.nasreddine.info \
    --to=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).