-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSYS2 bash: Cursor display doesn't follow arrow keys after running Emacs #2697
Comments
@andreaszapf Does this repro in emacs in WSL for you as well, or only the MSYS2 emacs? |
@zadjii-msft Emacs in WSL works fine for me. That is, Emacs 25.3.1 on an older WSL (let me know if you need the exact version). |
Good to know - that means it's specific to the Terminal's VT processing, and not a broader issue with conpty. Thanks for confirming! |
@andreaszapf I know that this a long shot, but is this still repro'ing for you? I just tried installing the 20190524 MSYS2 build locally, and this doesn't seem to repro on the 0.8.10091.0 build of the Windows Terminal anymore. I thought I had a fix in #4372 for this, but since it's not even occurring in 0.8, then maybe it was fixed by something else earlier. |
@zadjii-msft It's still reproducing for me, I just checked with a fresh MSYS2 install like the one you used (msys2-x86_64-20190524). Here is what I did step-by-step, after installing MSYS2, in a CMD tab in Terminal: C:\>set MSYSTEM=MINGW64&& c:\msys64\usr\bin\bash --login -i
$ pacman -S -q --noconfirm mingw64/mingw-w64-x86_64-emacs
$ emacs -nw --eval '(save-buffers-kill-terminal)' # open and immediately close emacs
$ abcde
# cursor can't be moved with arrow keys... |
Well that's no good. Doing the exact same thing works fine on my machinetm Maybe this will just go away in the next version with #4372 🤞 |
Oh that's great to hear! I'll tag this up appropriately then. Thanks for taking the time to build this and confirm! |
I'm .. actually unfortunately still seeing this with 0.9.301.0, which does contain #4372. It trivially reproduces if I hide the cursor and then try to move around my prompt line as well. :/ |
Oh, I see. I'm using |
🎉This issue was addressed in #4372, which has now been successfully released as Handy links: |
Environment
Steps to reproduce
Run MSYS2 / MINGW64 bash in Windows Terminal, e.g. in a CMD tab with
set MSYSTEM=MINGW64&& c:\msys64\usr\bin\bash --login -i
Run Emacs in the terminal (
emacs -nw
) and quit it immediatelyBack at the bash prompt, enter a few characters, say
123
Press the left-arrow as often as needed to move the cursor to the
beginning of the line (in this example 3 times)
Enter some other characters
Expected behavior
The cursor moves with the left-arrow keystrokes to the beginning of the line
New text appears line start
Actual behavior
The cursor stays at the end of the line, although the internal position is updated
and new text appears at line start.
When I delete text using Backspace or Delete, the cursor jumps to the correct position,
but jumps back to the end of line when new text is entered.
It seems that MINGW Emacs and MSYS2 bash don't play well in Windows Terminal -- in
the classic Windows console there is no issue.
This might be related to #2561.
The text was updated successfully, but these errors were encountered: