From: Eli Zaretskii <eliz@gnu.org>
To: Ergus <spacibba@aol.com>
Cc: 60966@debbugs.gnu.org
Subject: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal
Date: Fri, 20 Jan 2023 21:17:07 +0200 [thread overview]
Message-ID: <83lelxm2x8.fsf@gnu.org> (raw)
In-Reply-To: <87v8l1p3bi.fsf@aol.com> (bug-gnu-emacs@gnu.org)
> 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.
next prev parent reply other threads:[~2023-01-20 19:17 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 [this message]
2023-01-23 22:45 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=83lelxm2x8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=60966@debbugs.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).