Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: scratchpad text
- X-seq: zsh-users 15496
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: scratchpad text
- Date: Tue, 26 Oct 2010 19:54:57 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=lzmSQl4ixglNW/2SRVTnFiJjDuTmuOlLsZWAu1bshWU=; b=mqyhBy3tQ0S4iKtxVf4QpM1HSfCSqBkB+R92PYI1cn7miq5asai9rYOFvlI4xkxo0h +osk+g/+yDUn/XiKy/btHL3Q1ntNrBFvFCMfBUJRfe4tyjVLhMDn0aLE5rA28IDSODq3 MHhzAk/YDp6uT3capzXalDOU1Bqwp+FC4YSL0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iK/2WLOC53cCaB5iAeSm/rRUKWXyAV8jc7dVAQagPntGrOsHLzgF8rywP8oJChusWP gbhkKofMNu9WWeUrNGkgDg6FJaPA3aGSQmFUXzon43K+7TvVWc/pMuW/OO7H765iCXqz p1wPtTxT2hS6YCPS9kmkT4eV9mhpP8RraQMH8=
- In-reply-to: <mailbox-7340-1288114726-867790@pepper>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <mailbox-13528-1288051103-638311@pepper> <101025232913.ZM27636@xxxxxxxxxxxxxxxxxxxxxx> <mailbox-6685-1288078531-884832@pepper> <AANLkTimS=+3-gSqj-R8F=bz_fO7NqV8kkQpn_aQ0UmRG@xxxxxxxxxxxxxx> <mailbox-4978-1288093030-725915@pepper> <101026081643.ZM28648@xxxxxxxxxxxxxxxxxxxxxx> <mailbox-7340-1288114726-867790@pepper>
On 26 October 2010 19:43, Eric Smith <es@xxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author