From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17750 invoked by alias); 26 Oct 2010 17:43:19 -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: 15494 Received: (qmail 29137 invoked from network); 26 Oct 2010 17:43:17 -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:43:13 +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: <101026081643.ZM28648@torch.brasslantern.com> User-Agent: Mutt/1.5.20 (2009-06-14) > 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