[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal
From: |
Eli Zaretskii |
Subject: |
bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal |
Date: |
Fri, 20 Jan 2023 21:17:07 +0200 |
> 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.
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Ergus, 2023/01/20
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal,
Eli Zaretskii <=
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Ergus, 2023/01/23
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Eli Zaretskii, 2023/01/24
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Ergus, 2023/01/24
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Eli Zaretskii, 2023/01/24
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Ergus, 2023/01/31
- bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal, Eli Zaretskii, 2023/01/31