From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-users@zsh.org
Subject: Re: scratchpad text
Date: Tue, 26 Oct 2010 19:54:57 +0200 [thread overview]
Message-ID: <AANLkTi=2K6vbnE4D9ZvFDsTVGbOvnFt=U7nFFX6HQZs8@mail.gmail.com> (raw)
In-Reply-To: <mailbox-7340-1288114726-867790@pepper>
On 26 October 2010 19:43, Eric Smith <es@fruitcom.com> wrote:
>> 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.
^M is carriage return, ie go to beginning of line. Try echo hello^V^My
for example. If you want to enter literal newlines somewhere, try
^V^J.
--
Mikael Magnusson
prev parent reply other threads:[~2010-10-26 17:55 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
2010-10-27 4:47 ` Bart Schaefer
2010-10-26 17:54 ` Mikael Magnusson [this message]
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='AANLkTi=2K6vbnE4D9ZvFDsTVGbOvnFt=U7nFFX6HQZs8@mail.gmail.com' \
--to=mikachu@gmail.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).