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: Sat, 05 Dec 2020 09:40:48 +0200 Message-ID: <83v9dgd7jz.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45042@debbugs.gnu.org To: Ed Avis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 08:42:30 2020 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 1klSD8-0006QP-Gv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 08:42:30 +0100 Original-Received: from localhost ([::1]:60292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klSD7-00084E-0U for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 02:42:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klSCh-000847-Ke for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 02:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klSCg-000494-5R for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 02:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klSCg-0003I3-1e for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 02:42: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: Sat, 05 Dec 2020 07:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45042 X-GNU-PR-Package: emacs Original-Received: via spool by 45042-submit@debbugs.gnu.org id=B45042.160715408112599 (code B ref 45042); Sat, 05 Dec 2020 07:42:02 +0000 Original-Received: (at 45042) by debbugs.gnu.org; 5 Dec 2020 07:41:21 +0000 Original-Received: from localhost ([127.0.0.1]:46483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klSC1-0003H9-I1 for submit@debbugs.gnu.org; Sat, 05 Dec 2020 02:41:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klSBx-0003Gu-Gk for 45042@debbugs.gnu.org; Sat, 05 Dec 2020 02:41:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42483) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klSBo-0003tV-Qf; Sat, 05 Dec 2020 02:41:08 -0500 Original-Received: from [176.228.60.248] (port=3815 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1klSBk-000416-4I; Sat, 05 Dec 2020 02:41:06 -0500 In-Reply-To: (message from Ed Avis on Fri, 4 Dec 2020 18:53:28 +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:195019 Archived-At: > From: Ed Avis > Date: Fri, 4 Dec 2020 18:53:28 +0000 > > Is there something Emacs can do to make sure the cursor > position on screen is always updated? Someone who has access to such systems will have debug the functions in w32console.c and see what isn't working in those cases. As you can see, we just use SetConsoleCursorPosition, an API that is supposed to be agnostic to the terminal emulator running, as long as it emulates the w32 console well enough. Or maybe these terminal emulators set TERM to some value that dupes Emacs into incorrect operation? If so, try unsetting TERM.