From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "60966@debbugs.gnu.org" <60966@debbugs.gnu.org>
Subject: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal
Date: Mon, 23 Jan 2023 22:45:15 +0000 (UTC) [thread overview]
Message-ID: <163867763.625356.1674513915222@mail.yahoo.com> (raw)
In-Reply-To: <83lelxm2x8.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2631 bytes --]
Hi Eli:
Thanks, now I understand the problem... it is a bit weird, but OK.
Today I also tried the nt/INSTALL.64 steps and somehow I got an issue about #include <ms-w32.h>: No such file or directory.
I repeated the steps in the guide carefully but I only get the same error after make.
---------------------------------
In file included from ../src/config.h 3043
../../source/lib/../src/conf_post.h:38:11: fatal error: ms-w32.h: No such file or directory 38 | # include <ms-w32.h> |compilation terminated
----------------------------------
Any idea? I am using the mingw64 terminal to build as the guide says... so maybe there is anything wrong in my envirnment?
Thanks in advance,Ergus
On Friday, January 20, 2023 at 08:17:23 PM GMT+1, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Fri, 20 Jan 2023 17:40:17 +0100
> From: Ergus via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> Very recently I have built emacs on MS-Win...10 (please don't ask
> why). I used msys2 and followed this guide which seems to be very clear
> and simple:
>
> https://gist.github.com/nauhygon/f3b44f51b34e89bc54f8
>
> After the build and installation, everything seemed
> correctly. runemacs.exe works as expected... and in gui it works fine (a
> bit slow to start... but maybe that is not so important now)
>
> However, when I tried:
>
> emacs -nw -Q
>
> I found that emacs was not clearing the terminal on startup.
What is "the terminal" from which you invoke "emacs -nw"? You should
invoke it from cmd.exe (a.k.a. "Command Prompt") window, not from the
MSYS2 mintty terminal.
> So, emacs is apparently starting correctly (status-line is visible
> and cursos), but the previous text is still on the screen
> overlapping with emacs and making it unusable. If opening a file,
> the file content is inserted bellow the old text, truncating the
> head of the file, but the cursor can move up to the top.
>
> Moving the cursor down (off the screen) the screen scrolls the file
> content, but the old text stays fix.
>
> After C-x C-c, emacs exists "correctly" but in this case the terminal is
> actually cleared (Like C-l usually do). Which somehow is not intended,
> because the terminal is expected to be recovered to it's previous
> status right?
>
> All this was with the current master and the emacs-29 branch.
Emacs isn't that badly broken on Windows, including in -nw sessions.
You should invoke it as a native Windows application, from the Command
Prompt window, not as an MSYS2 application.
[-- Attachment #2: Type: text/html, Size: 5439 bytes --]
next prev parent reply other threads:[~2023-01-23 22:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87v8l1p3bi.fsf.ref@aol.com>
2023-01-20 16:40 ` bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-20 19:17 ` Eli Zaretskii
2023-01-23 22:45 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-01-24 13:16 ` Eli Zaretskii
2023-01-24 15:24 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-24 16:57 ` Eli Zaretskii
2023-01-31 16:55 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-31 18:04 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=163867763.625356.1674513915222@mail.yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=60966@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=spacibba@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).