From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13519 invoked by alias); 8 Dec 2014 00:46:22 -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: 33925 Received: (qmail 5041 invoked from network); 8 Dec 2014 00:46:20 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wTPk9iUFgnMRue7ZJINalbU9myKlHeKlvizXcZo+eko=; b=KrNKVi+7vIU1vZv7bowqdNSpsyCYEOnPLTrmT5GiH3RI6Jr6kEmb2/KvFJQeTZTbYG 9HLWhGvcAXrsaAVDV14acV6YD34bz1JXSJonJ7eZP7Zt5IgQjMlkELQf2cKYwA4S0Uo6 gB4UPQBcesY3GUW/OditWKbmokHyatX4h4f4JsIf77GkVYlPnBhPp+bjXSdTl0CYRMdY jOdyS9yxO9N/RvosGourzaMkJDcLDnFt38CYh8k7xbXMK+eY6rMA9ghQpqOcawDwydYT fR2DLobrfwVRhEr9GhaNzTON/Sn2rRGyBaAIsvoDYGQO4DzKotEw7noBK3Zr/OnpZ10X iVSw== MIME-Version: 1.0 X-Received: by 10.42.25.144 with SMTP id a16mr24515335icc.66.1417999577742; Sun, 07 Dec 2014 16:46:17 -0800 (PST) In-Reply-To: <140217103448.ZM21515@torch.brasslantern.com> References: <140202135837.ZM15483@torch.brasslantern.com> <15702.1391766336@thecus.kiddle.eu> <140207084619.ZM28881@torch.brasslantern.com> <140208115850.ZM30584@torch.brasslantern.com> <140217103448.ZM21515@torch.brasslantern.com> Date: Mon, 8 Dec 2014 01:46:17 +0100 Message-ID: Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT From: Mikael Magnusson To: Bart Schaefer Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Mon, Feb 17, 2014 at 7:34 PM, Bart Schaefer wrote: > On Feb 17, 5:12pm, Mikael Magnusson wrote: > } > } I just updated zsh for the first time since before all this, and > } setting ZLE_RPROMPT_INDENT=0 breaks the display for me (or with the > } heuristics, not setting it to 1). > > With xterm (and I presume with urxvt) you need ReverseWrap: true for > a zero indent to work correctly. The default is false, at least for > xterm (I don't use/have installed urxvt to check). This default > ought to be reported correctly by terminfo, but it's quite possible > that it is not, in which case the heuristic would get it wrong. It is > after all a heuristic, not a perfect test. > > A dump of the key/value pairs in $terminfo might be instructive. > > } I'm using urxvt and it does seem to somewhat work if I just set > } RPS1=hello, but not with my actual rprompt. > > I don't can't reproduce any difference between having a plain string > prompt and having one with bold/nobold etc., but it's not beyond the > realm of imagination that an emulator would (incorrectly) treat such > controls as "printing beyond the margin". I get the glitch when the resulting string is empty, but still prints something. Eg, RPS1=%b RPS1=%f RPS1=$'\0' produce the error while RPS1=' %b' RPS1='%f ' don't. -- Mikael Magnusson