zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Mario Signorino <mario.signorino@gnufish.net>
Cc: zsh-workers@zsh.org
Subject: Re: Strange initial escape string
Date: Sat, 15 Jun 2013 11:44:45 -0700	[thread overview]
Message-ID: <130615114445.ZM12286@torch.brasslantern.com> (raw)
In-Reply-To: <CAM8HBcXCQ_OgEMoq_5fUDPv5NqoX-87uz8cYCUSeGnMCQFi4dw@mail.gmail.com>

On Jun 15,  1:31pm, Mario Signorino wrote:
}
} export XPIPETERMINATOR=$'\033|.'
} PS1="${XPIPETERMINATOR}mario@squit $ "
} 
} 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? Or: is
} there any other way to know that the execution of the last command is just
} finished? something as a "postexec()" function?

As Mikael has already so tersely mentioned:

PS1="%{${XPIPETERMINATOR}%}mario@squit $ "

Assuming xpipe is responsible for starting the shell that runs inside the
emulator, I would suggest that xpipe itself export XPIPETERMINATOR, so that
zsh init files can test for it and adjust prompts.


  parent reply	other threads:[~2013-06-15 18:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 21:28 Mario Signorino
2013-05-30 22:56 ` Mario Signorino
2013-05-31  5:10   ` Bart Schaefer
2013-06-15 11:31     ` Mario Signorino
2013-06-15 12:22       ` Mikael Magnusson
2013-06-15 18:44       ` Bart Schaefer [this message]
2013-06-15 19:14         ` Mario Signorino

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=130615114445.ZM12286@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=mario.signorino@gnufish.net \
    --cc=zsh-workers@zsh.org \
    /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).