From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24695 invoked by alias); 7 Feb 2014 09:53:02 -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: 32359 Received: (qmail 14360 invoked from network); 7 Feb 2014 09:52:46 -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,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1391766337; bh=QlS7xnSnN6mLQjkz0IzKvluMxKehyBCQkjf1CkM0Ngc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Content-Transfer-Encoding:Date:Message-ID; b=QUA+8YxbQY0eNU542Qy7h/RmxkS9MjZrn7L2qmFW0+4VmJWifwbWmWsoEOBnbEQaOXFbzRALx/b87wP9wnlMvsuDywMmrJb+VvLcRFd+35VbGzFDc2w5zQPOXHmgGiQTPeQ7lrG6jKS77MJi2WzLhKEDDzXZVOZetfUT0bfYUNw= X-Yahoo-Newman-Id: 904075.58002.bm@smtp119.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: RxSJdlMVM1mpjcO7NGIo3Rzajqt94ZHLXuKFFdebM2IJNqC DdULT9xSL3Rf6wmxcCSs6dG0lkbMkVgsSU.AK7nisvPkoDeLCJOkBAONuyna tldj7oKNY2R0gYdulV2QPnrpZ8eC63Mujp5FAYwMnwpHEgsT.Ycg7k5QgJps 3nlUyuZi5Dk_gE8uN13fkhgfhOPBH1xJFbUCJex.mdGpSzphWbZr3nT9WwoD 7.GEnv0WvsvKhpNsMKFTgBmH9aZjsqaGsyUhh37OXs4g6RiO1Iur49LdfcoW xdT7xfRilUQqM3f10KPHQp_A.e_GFpgbcOgSPxEeIYCOpmkqMPKcFT0eO9AY zvfqFqpTi4zVM0fq4JPNADGxOw4X7pLKKQ6lX3GqVujPYcMtNrfkrFnVxd7C h_ou_3pW.1nhnRqvRSR2FpnLLUhJ.76Q5DkFNrSw0C3cyW4C0tavHeHBrQGH wp0kpUT2MujeezElTV8OgnxYWb7OUCagkFqgFbb0QoxsESU0IKzxad7F4xaG 3mL4aR4hdMSHuMoMWrLJXX4NJ5A-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- X-Rocket-Received: from kiddle.eu (okiddle@5.146.58.100 with plain [188.125.69.59]) by smtp119.mail.ir2.yahoo.com with SMTP; 07 Feb 2014 09:45:37 +0000 UTC In-reply-to: <140202135837.ZM15483@torch.brasslantern.com> From: Oliver Kiddle References: <140202135837.ZM15483@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <15693.1391766326.1@thecus.kiddle.eu> Content-Transfer-Encoding: 8bit Date: Fri, 07 Feb 2014 10:45:36 +0100 Message-ID: <15702.1391766336@thecus.kiddle.eu> On 2 Feb, Bart wrote: > Another one we agreed to leave for after a stable release. This takes a > best guess at whether the terminal can handle having a character written > to the lower right corner, and removes an unnecessary import from the > environment [it is already handled correctly by the generic environment > import in createparamtable()]. This is resulting in my cursor appearing one column more to the left than it should. Actually, ZLE_RPROMPT_INDENT=0 with 5.0.5 is enough for that to occur. 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. None of the terminals I have are attempting to scroll when writing to the bottom right corner. The ones that work are ignoring a subsequent backward cursor movement – as if the cursor had really moved beyond the edge of terminal. The output of the following demonstrates: print -lrn ${(l:$COLUMNS:):-x};echoti cub1;echoti cub1;sleep 1 On a working terminal, the cursor is just to the left of the x for the 1 second delay. On those that fail, it is two back. Is it perhaps possible to fix this by changing from a relative to an absolute cursor movement after the RPROMPT is displayed? Oliver