From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19101 invoked by alias); 26 Oct 2010 17:51:10 -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: 15495 Received: (qmail 18350 invoked from network); 26 Oct 2010 17:50:59 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at trustfood.org does not designate permitted sender hosts) Date: Tue, 26 Oct 2010 19:50:58 +0200 From: Eric Smith To: zsh-users@zsh.org Subject: Re: scratchpad text Message-ID: Mail-Followup-To: zsh-users@zsh.org References: <101025232913.ZM27636@torch.brasslantern.com> <101026081643.ZM28648@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) > > 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