From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9338 invoked by alias); 26 Oct 2010 17:55:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15496 Received: (qmail 29276 invoked from network); 26 Oct 2010 17:55:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.171 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: References: <101025232913.ZM27636@torch.brasslantern.com> <101026081643.ZM28648@torch.brasslantern.com> Date: Tue, 26 Oct 2010 19:54:57 +0200 Message-ID: Subject: Re: scratchpad text From: Mikael Magnusson To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 26 October 2010 19:43, Eric Smith 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