From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26058 invoked by alias); 14 May 2018 08:51:41 -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: List-Unsubscribe: X-Seq: 42771 Received: (qmail 22913 invoked by uid 1010); 14 May 2018 08:51:41 -0000 X-Qmail-Scanner-Diagnostics: from mailout2.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(210.118.77.12):SA:0(-6.9/5.0):. Processed in 2.740286 secs); 14 May 2018 08:51:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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,SPF_PASS,T_DKIMWL_WL_HIGH,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180514085134euoutp026ece44b8584a9d6a9fb5d81c58bc975c~udsDoRmck1260112601euoutp02A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526287894; bh=h/l4QgXgTiQUIg6yxIhkKlC7v6ibuZCY6Lx99ctU8PE=; h=Date:From:To:Subject:In-Reply-To:References:From; b=VBJYnC0FDhaFRnMqCmHaZplxqDaGKDIOzOrpAObTggVjs/f+8qBEwJHoNvmqxPAwh 5hA/axBaubJ2kVs8oQ6etiv0pMB1XMxt4jXpG97U7tiS5mpvFJD9kVxaHpSuY3cNsw LS9RNLEva828z4g4sGvK0jh8tY6ZRaYPXbnErlho= X-AuditID: cbfec7f2-1dbff70000011644-d7-5af94e141d14 Date: Mon, 14 May 2018 09:51:29 +0100 From: Peter Stephenson To: Alexandros Kozak , Subject: Re: Prompt wrapping problems since 42285 ("off by one fix in multiple prompts ") Message-ID: <20180514095129.17786861@camnpupstephen.cam.scsc.local> In-Reply-To: <005701d3e8ae$1eab9070$5c02b150$@gmail.com> Organization: SCSC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsWy7djPc7oifj+jDKYfVrd4sG4Vq8XB5odM DkweO2fdZfdYdfADUwBTFJdNSmpOZllqkb5dAlfG7q69rAX/2SvW/EtrYNzL1sXIySEhYCLR trGFuYuRi0NIYAWjxL2DfewQzhdGiZcHPkM5nxklzj69yw7TsudPB1TLckaJ6V92ssJVrTh0 hg3COcMo8fHuO6jMBUaJ7gNbGUH6WQRUJfbsOsMMYrMJGEpM3TQbLC4iYC9x7+F+FhBbWCBa 4tr/HUA1HBy8As4Sk6+ZgYQ5BSwk5j1sYQUJ8wsISVxotoW4yF7i6J6TTCA2r4CgxMmZT8Cm MAvIS2x/OwfsUgmBZnaJb0dvMUI0uEj8v7aRFcIWlnh1fAvUazIS/3fOZ4JqYJRYe/8+NJh6 GCVmLQ6FsK0l+m5fZAQ5gllAU2L9Ln2IsK1E+9JfbCBhCQE+iRtvBSFu4JOYtG06M0SYV6Kj TQiiWk1iR9NWxgmMKrOQXD0LydWzEOYvYGRexSieWlqcm55abJiXWq5XnJhbXJqXrpecn7uJ EZgcTv87/mkH49dLSYcYBTgYlXh4Gdb8iBJiTSwrrsw9xCjBwawkwrvb6GeUEG9KYmVValF+ fFFpTmrxIUZpDhYlcd44jbooIYH0xJLU7NTUgtQimCwTB6dUA2NJRsISpaeb/Q4lXxd7d+X9 FMutzIF5YtxiMzUYVgm6nK6SFsnM/ipR8ObBmYQXu9+cCZctv7byJXdgv4Huz7W/8pqWC8xe dD7Ym2PxvIZP8nfyQ2JXPFsb/dRdvrB9isOli/vX/VNfrTBdRXmG8Av+VdveX9r0q3zOq1mR D+c5Xt7527zqMttyJZbijERDLeai4kQA5BVKtwoDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRmVeSWpSXmKPExsVy+t/xu7rCfj+jDPafl7d4sG4Vq8XB5odM DkweO2fdZfdYdfADUwBTlJ5NUX5pSapCRn5xia1StKGFkZ6hpYWekYmlnqGxeayVkamSvp1N SmpOZllqkb5dgl7G7q69rAX/2SvW/EtrYNzL1sXIySEhYCKx508HcxcjF4eQwFJGia7+z1AJ GYlPVz6yQ9jCEn+udbFBFH1klPh56jg7hHOGUeJ+5z8WCOcCo8Sf00dZQVpYBFQl9uw6wwxi swkYSkzdNJsRxBYRsJe493A/C4gtLBAtsfvIBaBJHBy8As4Sk6+ZgYQ5BSwk5j1sYYWY2c0o 8WTnEVaQGn4BIYkLzbYQF9lLHN1zkgnE5hUQlDg58wnYSGYBHYkTq44xQ9jyEtvfzmGewCg8 C0nZLCRls5CULWBkXsUoklpanJueW2ykV5yYW1yal66XnJ+7iREYJ9uO/dyyg7HrXfAhRgEO RiUe3hUrf0QJsSaWFVfmHmKU4GBWEuHdbfQzSog3JbGyKrUoP76oNCe1+BCjKTAsJjJLiSbn A2M4ryTe0NTQ3MLS0NzY3NjMQkmc97xBZZSQQHpiSWp2ampBahFMHxMHp1QD4xqevddZkw4F nT+7KUVbnH8C3zQFnmb3oqP7wiRNAv4U+022mPSG4cGrCXwsX7nDrTrnGT44o8y632il/rQ/ c/3v5+1JXHTzb1h52cwTnBLWi28u65W2371rVnZt2oK7jx/fXeCXzPu2W7bwtKZG7c/jdnc1 HMskSrbzunYutOVYM8de7M7cDCWW4oxEQy3mouJEAF4X0lGpAgAA X-CMS-MailID: 20180514085131eucas1p15db413d808d70dd8e91e5185473bfd45 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180514085131eucas1p15db413d808d70dd8e91e5185473bfd45 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180510222848epcas1p217b8864e4a44eaba7f15d4a48f1836a7 X-RootMTR: 20180510222848epcas1p217b8864e4a44eaba7f15d4a48f1836a7 References: <005701d3e8ae$1eab9070$5c02b150$@gmail.com> On Thu, 10 May 2018 15:27:44 -0700 "Alexandros Kozak" wrote: > I have an asynchronous ZSH prompt > (https://github.com/agkozak/agkozak-zsh-theme) that works quite well > in ZSH 4.3.11-5.4.2. Ever since v5.5 came out, I've been having a lot > of trouble when the prompt wraps; the cursor frequently appears a few > characters back from where it should. Eliminating the RPROMPT > sometimes helps a bit, but even then, if I enter something and then > delete the line, the cursor will snap back on top of the text of the > left prompt, not at its end. Bart pointed out when this patch appeared that terminal behaviour simply isn't well-defined enough that all of them have consistent wrapping behaviour, and they don't even provide enough information for the shell to decide by itself. About the only possibility we have to is to expand the ability to configure the settings (we currently have ZLE_RPROMPT_INDENT, which can be set to 1 to try to massage our way out of trouble). pws