zsh-users
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-users@math.gatech.edu
Subject: Re: Xterm title changing prompt problem: HELP!
Date: 14 Jan 1999 23:25:21 GMT	[thread overview]
Message-ID: <slrn79sv71.83r.mason@coral.primenet.com.au> (raw)
In-Reply-To: <Pine.GHP.4.05.9901141611470.26309-100000@ixion.honeywell.com>

Shawn Leas <sleas@ixion.honeywell.com> typed:
:This new thing I found is too kewl, but I need a little help.
:However, my right prompt is shifted to the left.  I suspect
:This is due to zsh keeping track of the length of the left
:part of the prompt, then adjusting where to put the right one.
:Should I just not have a right prompt? Or is there a way around
:this?
:PROMPT='^[];[%l] %n@%m %1v (%h) %t\a[%l] %n@%m %1v (%h) %t '
         ^ insert ``%{''             ^ insert ``%}''
thus
PROMPT='%{^[];[%l] %n@%m %1v (%h) %t^G%}[%l] %n@%m %1v (%h) %t '

>From the manual (section PROMPT EXPANSION):
	%{...%}
	    Include a string as a literal escape sequence.  The
	    string within the braces should not change the cur-
	    sor position.  Brace pairs can nest.
-- 
Geoff Wing   <gcw@pobox.com>            Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/


  reply	other threads:[~1999-01-14 23:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-14 22:17 Shawn Leas
1999-01-14 23:25 ` Geoff Wing [this message]
1999-01-15 11:48   ` Andrew Gallagher
1999-01-15 11:58     ` Bruce Stephens
1999-01-15 14:29     ` Geoff Wing
1999-01-15 15:41       ` Andrew Gallagher
1999-01-15 17:05         ` Geoff Wing
1999-01-18 10:45           ` Andrew Gallagher

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=slrn79sv71.83r.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-users@math.gatech.edu \
    /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).