From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8336 invoked by alias); 18 Dec 2013 19:44:19 -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: 32154 Received: (qmail 9814 invoked from network); 18 Dec 2013 19:44:05 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=eNkk9FLO6MXDSoIcgALy6g1ErEaX3jyCRxdYMAXlLrw=; b=UAjhfSRzEbZvPeKK9Olv0uaztfIfvQCFBwwHWxsO76uuM5GlD345zH25IjomxlfAIP Hns8X7DVajiHrdRDew+8I97kUVN9EczDQz3zeT+eOC6C7ZCrOhfo14PWS8pymk5nkJYA il6RUlPEMkOQJPxXSHbreFb8vw/MecS9mVFlDvk1LHM7u6Suymhy9rVY1VdTUSpXLdPD l1fPI4DQld2KOIIexQI9FX4Nd8nO9B3ctFT8GePjxvxogLgmorjcjmWR1t+SA1ldZ1fU 62brYRedQifwH9lWcmaVsriinUBDL5X6PEGWRuACp81WKd09yvNxcToktXpOOYvhL6x4 8g7g== X-Gm-Message-State: ALoCoQk8CJ6MjRLgAn+xEc3wdiie1T3IHQ+ianw9yiO2vFoJcNYygoLmPGjOXUIHtPSx36JuQB9a X-Received: by 10.180.160.212 with SMTP id xm20mr9433515wib.33.1387395434084; Wed, 18 Dec 2013 11:37:14 -0800 (PST) X-ProxyUser-IP: 86.6.157.246 Date: Wed, 18 Dec 2013 19:37:11 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Simulating ZLE_RPROMPT_INDENT=0 Message-ID: <20131218193711.68390493@pws-pc.ntlworld.com> In-Reply-To: <131218104353.ZM23017@torch.brasslantern.com> References: <131217224337.ZM20989@torch.brasslantern.com> <20131218092738.0dbc94a1@pwslap01u.europe.root.pri> <131218092611.ZM22367@torch.brasslantern.com> <20131218173853.54435025@pwslap01u.europe.root.pri> <131218104353.ZM23017@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 18 Dec 2013 10:43:53 -0800 Bart Schaefer wrote: > } > In the event that the terminal has no non-destructive move-left sequence, > } > should assigning ZLE_RPROMPT_INDENT=0 print a warning? Should it also > } > (or instead) ignore the value and revert to 1 in that case? > } > } Would make more to have another more programmatically useful way of > } testing this if we need to, e.g. with echotc or echoti. > > I'm not sure what you mean by this. Do you mean e.g. to just document > how a shell script would perform the test? No, I mean have a builtin with an explicit test that tells the user if the terminal supports the feature or not. Then changing the terminal and deciding whether to set a zero right-prompt indent can be done entirely in shell code. TERM=mymmodernpowerfulterminalemulator if builtin-decides-the-terminal-supports-non-destructive-move-left ZLE_RPROMPT_INDENT=0 else ZLE_RPROMPT_INDENT=1 fi Is anything likely to happen before I release 5.0.4? I was planning to produce it imminently, but maybe we don't want to disappoint the punters with a half implemented feature. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/