zsh-users
 help / color / mirror / code / Atom feed
From: DeWitt Clinton <dewitt@siva.tripod.com>
To: zsh-users@math.gatech.edu
Subject: On the topic of prompts
Date: Thu, 11 Jul 1996 13:51:48 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.3.94.960711134215.3905A-100000@siva.tripod.com> (raw)
In-Reply-To: <199607111647.MAA17121@nerc.com>

Hi,

I've been lurking here for a while, and while I don't take full advantage
of everything zsh offers, I am still a strong supporter.

I just recently switched to a two line prompt (embedding a literal newline
works fine for me) and I have a question.  I used to use rprompt to place
the time on the right hand side.  Now I would like the time to be right
justified on the first line of the prompt.  So it would look something
like:

- history hostname username cwd date          time -
%

Simply using rprompt would give me:

- history hostname username cwd date                             
%                                             time -

Since there is probably no way to justify a section of the prompt, perhaps
there is a way to tell rprompt to write to the line just above using
control characters?  Just wondering...

Also, is there a way to pad the variables with spaces?  If so, that would 
solve this problem entirely.

While I am thinking about it, what I am really looking for is a status bar
that would just sit at the top of the screen and hold certain useful
information.  Anyone know of how to achieve this?

-DeWitt

DeWitt Clinton                                       dewitt@siva.tripod.com
(413) 458-2265 at Tripod, Inc.                       (413) 458-2107 at home.




  reply	other threads:[~1996-07-11 18:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-11  6:01 zsh 3pre2: carriage return in prompt Timothy J. Luoma
1996-07-11 13:55 ` Zoltan Hidvegi
1996-07-11 16:47   ` Timothy J. Luoma
1996-07-11 17:51     ` DeWitt Clinton [this message]
1996-07-11 23:00       ` On the topic of prompts Bart Schaefer
1996-07-12 18:36         ` Jose Unpingco
1996-07-13  2:42           ` Bart Schaefer
1996-07-16  6:25           ` Nikita Borisov

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=Pine.LNX.3.94.960711134215.3905A-100000@siva.tripod.com \
    --to=dewitt@siva.tripod.com \
    --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).