Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange initial escape string
On 15 June 2013 13:31, Mario Signorino <mario.signorino@xxxxxxxxxxx> wrote:
> On Fri, May 31, 2013 at 7:10 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> wrote:
> Now some question:
> I've used some custom escape codes ( \033| ) to surround the important
> info. Now I can trap these strings and easily work on them. This is
> working. The problem is in the prompt. My PS1 is something like that:
>
> export XPIPETERMINATOR=$'\033|.'
> PS1="${XPIPETERMINATOR}mario@squit $ "
>
> that "terminator" tells to my terminal that the previous command has just
> finished. I use it to close any pending operation (show icons... git fancy
> output): if I receive that, it means *for sure* that I am again on the
> standard prompt.
> The problem is that zsh does not know anything about that escape codes and
> it thinks to have written more chars than it actually has: and it sends the
> carriage return too early (when I reach the end of the line).
> So: how can I tell to zsh to forget those 2 or 3 special chars?
%{ %}
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author