zsh-users
 help / color / mirror / code / Atom feed
From: Eric Smith <es@fruitcom.com>
To: zsh-users@zsh.org
Subject: Re: scratchpad text
Date: Tue, 26 Oct 2010 19:50:58 +0200	[thread overview]
Message-ID: <mailbox-8432-1288115225-108617@pepper> (raw)
In-Reply-To: <mailbox-7340-1288114726-867790@pepper>


> > How about:
> > 
> >     zle-line-init() {
> >       print -nR $terminfo[sc]$terminfo[home]"$REMINDER"$terminfo[rc]
> I tried to have a multi-line display (as you pre-empted).
> And using ^M as the newline car.
> But the second line actually overprints the first line.
> 
Kill this question, it works great wrapping to more lines if you just
build a long string and use no newline chars.
I find the scratchpad stand out and more readable when I pad the 
string thus:
print -nR $terminfo[sc]$terminfo[home]"| $REMINDER                         |"$terminfo[rc]

Getting greedy now:
May we have colours?

And a nice easy way to recall the scratchpad text to edit at will.

Thanks for this Bart, its great!

Eric


  reply	other threads:[~2010-10-26 17:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  0:48 Eric Smith
2010-10-26  6:29 ` Bart Schaefer
2010-10-26  7:40   ` Eric Smith
2010-10-26  7:45     ` Mikael Magnusson
2010-10-26 11:37       ` Eric Smith
2010-10-26 15:16         ` Bart Schaefer
2010-10-26 17:43           ` Eric Smith
2010-10-26 17:50             ` Eric Smith [this message]
2010-10-27  4:47               ` Bart Schaefer
2010-10-26 17:54             ` Mikael Magnusson

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=mailbox-8432-1288115225-108617@pepper \
    --to=es@fruitcom.com \
    --cc=zsh-users@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).