From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28089 invoked by alias); 18 Dec 2013 09:27:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32149 Received: (qmail 26669 invoked from network); 18 Dec 2013 09:27:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7f6f6d000005b3b-6e-52b16a8b4919 Date: Wed, 18 Dec 2013 09:27:38 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Simulating ZLE_RPROMPT_INDENT=0 Message-id: <20131218092738.0dbc94a1@pwslap01u.europe.root.pri> In-reply-to: <131217224337.ZM20989@torch.brasslantern.com> References: <131217224337.ZM20989@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4Zd3urI1BBv3zjC0ONj9kcmD0WHXw A1MAYxSXTUpqTmZZapG+XQJXxrJ121gKOtkrpn/fyt7AeIe1i5GTQ0LAROL27+XMELaYxIV7 69m6GLk4hASWMko8fraOHSQhJLCcSeLKwTIQm0VAVeLD22NgzWwChhJTN81mBLFFBMQlzq49 zwJiCwvoSFxc9wisl1fAXuLMsedg9ZwCVhJHtj9mhZhpKbFg2jEmEJtfQF/i6t9PTBBH2EvM vHKGEaJXUOLH5HtgM5kFtCQ2b2tihbDlJTavecs8gVFgFpKyWUjKZiEpW8DIvIpRNLU0uaA4 KT3XSK84Mbe4NC9dLzk/dxMjJAS/7mBceszqEKMAB6MSD+8Cn41BQqyJZcWVuYcYJTiYlUR4 pSKBQrwpiZVVqUX58UWlOanFhxiZODilGhiT1t52UP/R09un/MjzQfayth7fUOnL7vFWitPO 3HnFtM60a8cuvZfW2zZ6CbNZek6MvXHz5IaTf5YqL3vEscH0yuopXPtmialMCHd9ceBIaOOX z7M95/2LmGEldLLzVPof1TOrPzfq+S719Ms+z9A/oXphjtWsnZXC2xwLFTvsknn7mJUnKpYo sRRnJBpqMRcVJwIAKAOyoR8CAAA= On Tue, 17 Dec 2013 22:43:37 -0800 Bart Schaefer wrote: > I believe we concluded some years ago that it's not possible to reliably > tell from termcap/terminfo descriptions whether this sort of trick will > work, which is why moveto() is written the way it is. However, as we > have now made ZLE_RPROMPT_INDENT the user's responsibility, we could > simply assume that if ZLE_RPROMPT_INDENT=0, then printing the cub1 > sequence will do the right thing. (An extra check could be that the > cub1 sequence is not backspace or del.) > > To do this would require that rprompt_off be available in moveto(), which > likely means it needs to become global like vln and vcs. It's rather > inefficient anyway to be looking up the value of ZLE_RPROMPT_INDENT every > time zrefresh() is called; it ought to be handled like LINES/COLUMNS. That sounds reasonable. pws