From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29786 invoked by alias); 17 Feb 2014 16:12:33 -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: 32405 Received: (qmail 22058 invoked from network); 17 Feb 2014 16:12:29 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM 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 :content-type; bh=HERwSAcVT2xie+EBo+i9xbQpC34JeOM3UnSr+mflYIE=; b=DrpMjgL92AxCiYeLIb+Aho4caOKiWiNpag5QZukOBExBHdewlmOv4JgOf14aKJpejJ FmPbceLuvCDRO42Vv8I078WukwsCHhAwQPNpjRKMSASGJR/H9InVersIaWqVEC6YnF+0 L5VetKS/BO74M9Inx7iMy8X0MT0ttZ3whUcMh8t+tlC+y1+9FuJu7mbZgM8tRjqjHCsd R62XuX5JaY9URLm0wYs4z2lfr06fBdDviusQkrW7zWRDvNY2onGJfIi+uLd89DMfaoZW VSCPYqDCcghofjIQ2Mc1Ghhb/EbGj8HIh0YmISgWFsfut+wvIjysl8WLpnBEm8vzihc3 ppVw== MIME-Version: 1.0 X-Received: by 10.224.5.136 with SMTP id 8mr36414163qav.42.1392653544048; Mon, 17 Feb 2014 08:12:24 -0800 (PST) In-Reply-To: <140208115850.ZM30584@torch.brasslantern.com> References: <140202135837.ZM15483@torch.brasslantern.com> <15702.1391766336@thecus.kiddle.eu> <140207084619.ZM28881@torch.brasslantern.com> <140208115850.ZM30584@torch.brasslantern.com> Date: Mon, 17 Feb 2014 17:12:23 +0100 Message-ID: Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 8 February 2014 20:58, Bart Schaefer wrote: > > } } This effect seems to occur only on some terminals but may be version > } } specific because I get different results for the same terminal on > } } different systems. > } > } More likely it's termcap/terminfo database version specific. Can you > } compare the terminfo settings for two cases of the same terminal giving > } different behavior and report the difference? > } > } If it's not terminfo, it may be some kind of emulation option that has > } a different setting in the Xdefaults etc. > > I've just compared xterm on my old CentOS box (which does not show the > off-by-one effect) with xterm on my much newer Ubuntu box (where I *do* > see the effect). Except for some keypad definitions, the terminfo are > identical. > > However, on CentOS, my settings for class XTerm include ReverseWrap:true > whereas on Ubuntu I'm using the defaults. Normally this would mean that > terminfo/cap should have the "bw" capability, but it's false in both > cases because of course it has to describe the default settings. > > So perhaps the following patch ...? (The change to zle_refresh.c is to > silence a spurious "may be used uninitialized" warning.) 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). I'm using urxvt and it does seem to somewhat work if I just set RPS1=hello, but not with my actual rprompt. RPS1=%B%b ZLE_RPROMPT_INDENT=0 is enough to trigger the erroneous display here, which causes the cursor to be offset one step to the left. The same problem occurs in xterm. -- Mikael Magnusson