zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh users <zsh-users@sunsite.dk>
Subject: Re: lining up RPS1 and PS1
Date: Mon, 06 Jun 2005 15:23:35 +0000	[thread overview]
Message-ID: <1050606152335.ZM22089@candle.brasslantern.com> (raw)
In-Reply-To: <20050606101820.GC26977@atoom.net>

On Jun 6, 12:18pm, Miek Gieben wrote:
} 
} Now I wanted to make it look like this:
} [some info]                  [some more]
} %
} (where RPS1="[some more]")
[...]
} [I could stretch PS1 and calculate the placement of '[some more]', but 
} I really like the features of RPS1, like automatic placement.]

The whole point of RPS1 is that it gets automatically hidden as command
input extends to the right into the space it occupies.  But with a two-
line prompt, your typing is never going to intersect with "[some more]".
So, really, putting it in PS1 is the right way to go about this.

However:

RPS1="%{$(echotc UP 1)%}[some more]%{$echotc DO 1)%}"


  parent reply	other threads:[~2005-06-06 15:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-06 10:18 Miek Gieben
2005-06-06 10:35 ` Thorsten Kampe
2005-06-06 10:43   ` Miek Gieben
2005-06-06 10:53     ` Thorsten Kampe
2005-06-06 15:09       ` Gmane (Re: lining up RPS1 and PS1) Bart Schaefer
2005-06-06 16:23         ` Thorsten Kampe
2005-06-06 16:42           ` Miek Gieben
2005-06-06 16:53           ` Bart Schaefer
2005-06-06 15:04 ` lining up RPS1 and PS1 Dan Nelson
2005-06-06 15:23 ` Bart Schaefer [this message]
2005-06-06 16:38   ` Miek Gieben

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=1050606152335.ZM22089@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).