From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45042: 27.1; emacs -nw on Windows does not always update cursor position on screen Date: Tue, 26 Jan 2021 17:07:25 +0200 Message-ID: <83h7n320uq.fsf@gnu.org> References: <83v9dgd7jz.fsf@gnu.org>,<87pn1vqm68.fsf@gnus.org> , <83blde4ckz.fsf@gnu.org> , <83eei92fsh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 45042@debbugs.gnu.org To: Ed Avis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 26 16:08:25 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4PxA-0002Ae-6Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jan 2021 16:08:24 +0100 Original-Received: from localhost ([::1]:57990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4Px9-0008UW-8k for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jan 2021 10:08:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4Pwo-0008Qg-HC for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2021 10:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4Pwo-00052M-5u for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2021 10:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4Pwo-0000Vl-1C for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2021 10:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jan 2021 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 45042-submit@debbugs.gnu.org id=B45042.16116736511929 (code B ref 45042); Tue, 26 Jan 2021 15:08:01 +0000 Original-Received: (at 45042) by debbugs.gnu.org; 26 Jan 2021 15:07:31 +0000 Original-Received: from localhost ([127.0.0.1]:42407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4PwJ-0000V2-Cy for submit@debbugs.gnu.org; Tue, 26 Jan 2021 10:07:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4PwG-0000Uo-Fy for 45042@debbugs.gnu.org; Tue, 26 Jan 2021 10:07:29 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52218) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4Pw7-0004nn-NK; Tue, 26 Jan 2021 10:07:19 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2887 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l4Pw3-0007Il-7o; Tue, 26 Jan 2021 10:07:18 -0500 In-Reply-To: (message from Ed Avis on Tue, 26 Jan 2021 07:21:27 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198621 Archived-At: > From: Ed Avis > CC: "larsi@gnus.org" , > "45042@debbugs.gnu.org"<45042@debbugs.gnu.org> > Date: Tue, 26 Jan 2021 07:21:27 +0000 > > Thanks for the explanation. So although Emacs uses escape sequences to move the cursor on Unix-like > platforms, the Windows build uses the native console API. What surprised me was that the cursor position > does update for up and down movements, and it does update horizontally at the same time. It just doesn't > move if you do a horizontal movement by itself. If the cursor movement commands aren't supported by > PuTTY or by OpenSSH server+client, I would expect to see neither kind of movement working. I don't know the answer, but I'm quite sure that if you look at the sources of the respective packages, you will see the reason. It is also possible that in cases where it worked Emacs decided to move the cursor by redrawing the following or the preceding character, instead of calling the console API functions. (These are redisplay optimizations Emacs sometimes does.)