ConEmu: conemu-cyg-64.exe conflict with WIN10 1903 and Cygwin 3.1.1 (needs confirmation) (title updated)
Edit - The cause of this issue has been identified. See this comment - https://github.com/Maximus5/ConEmu/issues/2035#issuecomment-569473911
Versions
ConEmu build: 191012 x64 Installer OS version: Windows 10 x64 1903 Used shell version - Cygwin bash - Cygwin 3.1.1
Problem description
When using the connector as described here CygwinMsysConnector with the current Cygwin 3.1.1 release certain keys stop working - like the arrow keys and delete.
This configuration does not work:
set CHERE_INVOKING=1
& set "PATH=C:\cygwin64\bin;%PATH%"
& %ConEmuBaseDirShort%\conemu-cyg-64.exe /usr/bin/bash.exe --login -i -new_console:p:C:"C:\cygwin64\Cygwin.ico"
This will work: (removed - %ConEmuBaseDirShort%\conemu-cyg-64.exe
)
set CHERE_INVOKING=1
& set "PATH=C:\cygwin64\bin;%PATH%"
& /usr/bin/bash.exe --login -i -new_console:p:C:"C:\cygwin64\Cygwin.ico"
Steps to reproduce
- Windows 10 1903 x64 (possibly related to this specific build, i will try a VM of an older edition)
- Install Cygwin x64
- Install ConEmu x64
Note: I had an older version of Cygwin on WIN10 1903 x64 and it worked fine. I updated Cygwin to 3.1.1 and rebooted and then experienced the described issue.
Actual results
You can type but arrow keys and delete doe not work (possibly more keys are affected)
Expected results
That these keys work as they did previously.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 33 (7 by maintainers)
I need reanimate my work on pty definitely. As not only wsl requires it…
Thanks for posting this issue - I think I’m running into the same problem and I thought I was starting to go crazy. I’m running Windows 10 1809 with Cygwin
3.1.0
but the behaviour is otherwise the same.Looking at the release notes for Cygwin 3.1.0, they’ve added a feature that adds support for pseudo consoles in PTY:
Pseudo console is a new feature in Windows 10 1809, which provides console APIs on virtual terminal. With this patch, native console applications can work in PTYs such as mintty, ssh, gnu screen or tmux.
I think this new feature might be related to the issue; if you explicitly disable pseudo console support in Windows by changing the registry value
HKEY_CURRENT_USER\Console\ForceV2
from1
to0
and open a new{Cygwin bash}
shell, everything should work fine (or at least it does for me). Note that I don’t recommend this is a permanent solution - this might break some other app on your machine that expects this feature to be enabled!The old patch which causes the issue was: https://www.cygwin.com/ml/cygwin-patches/2019-q2/msg00013.html
The revised patch is: https://www.cygwin.com/ml/cygwin-patches/2020-q1/msg00004.html
A new cygwin has not yet been released, but a developer snapshot that fixes this problem is ready. https://cygwin.com/snapshots/ Please test.
for me the
2020-01-24
works too:I downloaded cygwin1-20200212.dll for 64 bit and it also fixed the arrow key functionality. I haven’t done enough testing to see if it broke anything else, but the arrows work just fine.
I’m experiencing the same problem. I also used a similar solution like you used, @userdocs. I’m using
TERM=xterm-256color
, if that matters. The thing is that I’m missing a line feed every time I hit the tab key for autocompletion or the enter key.I found out that I don’t have this problem if I use mintty, but mintty hijacks many keybindings…
My problem has been fixed with cygwin 3.1.4 on Windows 10 1909.