From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11836 invoked from network); 24 Mar 2004 20:26:05 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2004 20:26:05 -0000 Received: (qmail 23270 invoked by alias); 24 Mar 2004 20:25:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7261 Received: (qmail 23177 invoked from network); 24 Mar 2004 20:25:40 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Mar 2004 20:25:40 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 24 Mar 2004 20:25:40 -0000 Received: (qmail 21171 invoked from network); 24 Mar 2004 20:25:40 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 24 Mar 2004 20:25:38 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B6EwT-0008K4-00 for ; Wed, 24 Mar 2004 21:25:37 +0100 Received: from isi-dialin-129-79.isionline-dialin.de ([195.158.129.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 21:25:37 +0100 Received: from thorsten by isi-dialin-129-79.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 21:25:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: Wish for rprompt feature Date: Wed, 24 Mar 2004 21:25:33 +0100 Message-ID: <10hss9qafrc2f$.dlg@thorstenkampe.de> References: <1040320171038.ZM18075@candle.brasslantern.com> <1040321012959.ZM18687@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-79.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 * Bart Schaefer (2004-03-21 02:29 +0100) > On Mar 20, 7:12pm, Thorsten Kampe wrote: > } Customising your prompt so that it works like rprompt plus the "[...]" > } would require zsh skills beyond mine. > > It'd require skills beyond mine, too, without modifying the C code. As > usual with zsh prompts, RPS1 is computed exactly once (before the line > editor starts up for each command) and thereafter the code only knows > how long it is, to know when the input line overlaps with it and hence > to stop showing it. > > However, try this (requires 4.2.0) and see what you think: > > zle-line-init() { > POSTDISPLAY=" ${(%)RPS1}" > } > zle -N zle-line-init Looks interesting. But I cannot test your solution as thoroughly as it deserves because it doesn't recognize the Prompt sequences in my rprompt ($cyan, $reset_color[1]). Could you modify your "zle-line-init/POSTDISPLAY" solution so the colours in my prompt are shown? Thanks, Thorsten [1] [~/.zshrc] autoload -U colors; colors cyan=$fg_no_bold[cyan] RPROMPT='%{$cyan%}%~%{$reset_color%} %h:%i'