Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.6k stars 573 forks source link

Cursor not moving in Vim/MCedit under default WSL::WSL task #2311

Open ironiq opened 3 years ago

ironiq commented 3 years ago

Versions

ConEmu build: 210422 x64 OS version: Microsoft Windows [Version 10.0.18363.1500] x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): WSL1

The Windows version is not modifiable due this is under external control.

Problem description

If i edit a file with Vim/mcedit the cursor is not moving at all. When using mcedit, nothing works, just the function keys. I tried with totally clean ConEmu settings. I cannot reproduce it if i run WSL1 (the same command as my WSL task) via Win+R. Actually i cannot produce screenshot because the problem is not that type.

Steps to reproduce

  1. Download the portable version of latest preview and unzip
  2. Run ConEmu with WSL1
  3. edit a file: vim /etc/hosts
  4. try to move the cursor

Actual results

The cursor is not moving at all.

Expected results

The cursor is moving.

Additional files

Settings

Maximus5 commented 3 years ago

The attached settings file does not contain any tasks. The defaults can vary.

So, please show what the full command is used to start WSL1.

On the screenshot it's interesting for me the state of ConEmu - status bar, terminal modes, etc.

nothing works, just the function keys

Can you type something there?

https://conemu.github.io/en/wsl.html

ironiq commented 3 years ago

Here is the screenshot with mcedit in it. The command was: "%windir%\system32\wsl.exe ~".

conemu-210422-cursor-not-moving,png
ironiq commented 3 years ago

Forgot to mention, that the linux is an Ubuntu 18.04.5 inside the WSL.

ironiq commented 3 years ago

It seems that something is mixed on my machine: if i run "%windir%\system32\wsl.exe -l -v", it says version 1, but after reading issue #1930, putting the wslbridge2 and cygwin1.dll into the given folder and configuring the task like this: "set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe -cur_console:pm:/mnt" the cursor is working. I tried conemu-cyg-64.exe with "--wsl", but i got this error. My only question is: how can i jump to the unix homedir (like wsl.exe ~).