From: Eric Smith <es@fruitcom.com>
To: zsh-users@zsh.org
Subject: Re: scratchpad text
Date: Tue, 26 Oct 2010 19:43:13 +0200 [thread overview]
Message-ID: <mailbox-7340-1288114726-867790@pepper> (raw)
In-Reply-To: <101026081643.ZM28648@torch.brasslantern.com>
> How about:
>
> zle-line-init() {
> print -nR $terminfo[sc]$terminfo[home]"$REMINDER"$terminfo[rc]
> }
> zle -N zle-line-init
>
> Then anything stored in the shell parameter REMINDER will be shown at
> the top left of the screen. Of course it'll begin to scroll off if you
> have a multi-line command.
Nice, I like.
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.
This would be a nice to ahve, but the idea is great I will use - it
thanks.
> Replace sc/rc with tsl/fsl to use the status line if your terminal has
> one (which you can test for by examining $terminfo[hs]).
[eric@pepper ~] $ echo $terminfo[hs]
no
How would I change this?
Eric
next prev parent reply other threads:[~2010-10-26 17:43 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 [this message]
2010-10-26 17:50 ` Eric Smith
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-7340-1288114726-867790@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).