From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 3f8987b2 for ; Mon, 20 May 2019 10:47:40 +0000 (UTC) Received: (qmail 29633 invoked by alias); 20 May 2019 10:47:28 -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: 44336 Received: (qmail 18753 invoked by uid 1010); 20 May 2019 10:47:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25454. spamassassin: 3.4.2. Clear:RC:0(209.85.166.41):SA:0(-2.0/5.0):. Processed in 3.090825 secs); 20 May 2019 10:47:28 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZVYN3NmIWMruoIBmZykoLpyiRqs9ZQpCMvGKw65YDFY=; b=QhfoUQirh///oJsIkeKHBQh93mRdttlpsvz8sTVKitDTRKNCekP929xOQzin2IWNYP lF4TM0Nho0ApZ7k2SdKXDS4MMZ7jgKWm+qoPHlu0rx6wxktc2y2QNTMOH2RCvQZVC616 Sh6Po4YDvw75Kbpoj8oaHEagyCf/DKiu6SXaRchmNUk7zQbDlV67YfebBAqqxlXtWubx 2rt2k0jXRzlYbfMwvACwBTBkfVrJVG11KjQhniU6AJk3cwI0SJYuPZyy/IKgCTfuFRwv bat3+Jil3u6PcnRW/V0DSInSgrIncmZlQQ/l01hFjwERGxX+nwjpg8OAjp58ZwAnyBlV rXjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZVYN3NmIWMruoIBmZykoLpyiRqs9ZQpCMvGKw65YDFY=; b=UHT98Rm4V3V3KgIul1awvktDQU16Trrzc2j8pLPiEmo4Sw5Yk9/He4g5yfoCtTzTpd vjMe6NZxX+ApC8WnQblXVBFVCtZIsYetG65tqKtMUAtGXbBkV2axlf+S7rgp79SuUK/u nPWiOFdR8ZhMUcjnC/WNvk5qE5Kyo0IwqTYaFs5GyiWqHhPonpbtht/1kHMZgszbGuzb 5IiPLPI15zcz7cXQ4EDw5hmcGUnfuoc+ISsu9VKMqPZGAh84b4M6B5Z4asdsx3FlJmBL +3OfGTRS1aWfoaI6pKt0w/FqZZYZiKthLk413zne7/VxDxzZdPZKuCPGxM3kchcr/cyF MH5g== X-Gm-Message-State: APjAAAXFhZCrQVgJrIlDN6HBNCK6VzsVtcQEeLvIh8HpcGPTogc6DhH+ g+8egSIqMehpJ3PY2yTbtwnlzfvdZ4rPdPLyOlA= X-Google-Smtp-Source: APXvYqx/TALx53C/iInqV14Sy6YAFXk6cCNF2VmaQ0RRpYwm0111MLBG/nB8KWWRkunaYXTnRQSpUlfEWgINV9LzvAE= X-Received: by 2002:a6b:490e:: with SMTP id u14mr889315iob.151.1558349212233; Mon, 20 May 2019 03:46:52 -0700 (PDT) MIME-Version: 1.0 References: <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de> In-Reply-To: From: Roman Perepelitsa Date: Mon, 20 May 2019 12:46:41 +0200 Message-ID: Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix) To: Charles Blake Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000003b340805894f73b7" --0000000000003b340805894f73b7 Content-Type: text/plain; charset="UTF-8" On Mon, May 20, 2019 at 12:22 PM Charles Blake wrote: > For me XTerm (vsn 337 on Gentoo), I got the unpatched zsh -df show "after > 2" which I take it differs from your results. Thanks for the data point. Originally I've tried it on XTerm 330. I've now also tested it on XTerm 345 -- the latest release. It gives the same results as all other terminals I'd tested. I wasn't able to find the sources for XTerm 337. Do you know where I can obtain them? However, it's not likely that the same version of ZSH works on XTerm 330 and 345 but breaks on 337. A more plausible explanation is that there is something else in our setups that causes the difference in terminal behavior. Perhaps ZSH? I've tested with ZSH 5.4.2 that comes with Ubuntu 18.04 and with the latest version of the code that I pulled from https://github.com/zsh-users/zsh (commit fae7c853319798e170a0bcf1b3098b1a07447c70). Which version of ZSH are you using? Also, is it feasible for you to try my patch with the same terminal that exhibits correct behavior without patching? I also got rxvt-unicode-9.22 > to have the unpatched zsh -df put the curser just after the 2. OTOH, > trying "st" (simple term from sucksless), I got the incorrect position "on > top of" the 2. You may also want to check the terminal emulator in PuTTY. > HP-UX and AIX terminals were always "odd", but those are harder to get > access to. Thanks, I'll try PuTTY. Roman. --0000000000003b340805894f73b7--