From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7918 invoked by alias); 26 Oct 2010 15:17:00 -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: 15492 Received: (qmail 7674 invoked from network); 26 Oct 2010 15:16:58 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <101026081643.ZM28648@torch.brasslantern.com> Date: Tue, 26 Oct 2010 08:16:42 -0700 In-reply-to: Comments: In reply to Eric Smith "Re: scratchpad text" (Oct 26, 1:37pm) References: <101025232913.ZM27636@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: scratchpad text MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 26, 1:37pm, Eric Smith wrote: } } Mikael Magnusson said: } > On 26 October 2010 09:40, Eric Smith wrote: } > > } > > Looking for just some light RAM space to supplement my own consciousness. } > > Ideally would like to write to some buffer space in physical top } > > corner of screen. Even if editing is not possible. These points } > > would just supplement my current task or daily todo stuff or whatever. } > } > What about putting it in your RPS1 or something? } } Cool idea, nicer if I could have aright justify, trid using ^M for a } newline and it puts the newline on the left. 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. 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]).