Skip to content
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

[Bug] Midnight Commander and msys #2931

Open
3 of 4 tasks
ajtak-angelus opened this issue Apr 3, 2024 · 7 comments
Open
3 of 4 tasks

[Bug] Midnight Commander and msys #2931

ajtak-angelus opened this issue Apr 3, 2024 · 7 comments
Labels
👆 ConEmu Upstream issue in ConEmu. 👆 Git Upstream issue in Git for Windows. 🐛 Type: Bug

Comments

@ajtak-angelus
Copy link

ajtak-angelus commented Apr 3, 2024

Version Information

Cmder version: v1.3.24
Operating system: Windows 10 22H2

Cmder Edition

Cmder Full (with Git)

Description of the issue

I connect from cmder using ssh (cmder\vendor\git-for-windows\usr\bin) to the linux server and run midnight commander (mc). And as soon as I press ctrl+o, all the text under mc disappears. This has been happening since git-for-windows 2.27.0.
But I would like to use newer versions of git-for-windows because of the mouse in mc and other graphical improvements.
Can you please advise?
Thank you!

How to reproduce

  1. ssh user@server
  2. run mc
  3. press ctrl+o
  4. text disappears

Additional context

No response

Checklist

  • I have read the documentation.
  • I have searched for similar issues and found none that describe my issue.
  • I have reproduced the issue on the latest version of Cmder.
  • I am certain my issues are not related to ConEmu, Clink, or other third-party tools that Cmder uses.
@DRSDavidSoft DRSDavidSoft added 👆 ConEmu Upstream issue in ConEmu. 👆 Git Upstream issue in Git for Windows. labels May 7, 2024
@DRSDavidSoft
Copy link
Contributor

DRSDavidSoft commented May 7, 2024

Hi, I've done some tests, and it seems that this issue is happening due to ConEmu. Can you please test with some other terminals? Additionally, can you please install the vanilla ConEmu (not with Cmder) and test using the built-in ssh.exe in Windows?
Doing these tests may help us investigate the issue.

image

image

@DRSDavidSoft DRSDavidSoft added the 👀 Awaiting Response Waiting to hear back from the issue reporter. label Jun 15, 2024
@ajtak-angelus
Copy link
Author

I've tested it only in vanilla ConEmu and there mc even flashes the screen. Tested both with ssh directly in Windows and from git. Anything else I should test?

@DRSDavidSoft
Copy link
Contributor

Can you please dump SET to list the environment variables? Especially the TERM variable, if set

@stale stale bot removed the 👀 Awaiting Response Waiting to hear back from the issue reporter. label Jul 3, 2024
@ajtak-angelus
Copy link
Author

add_path=C:\Users\john\Desktop\cmder add_to_path=C:\Users\john\Desktop\cmder aliases=C:\Users\john\Desktop\cmder\config\user_aliases.cmd ALLUSERSPROFILE=C:\ProgramData ANSICON=142x1000 (142x47) ANSICON_DEF=7 APPDATA=C:\Users\john\AppData\Roaming architecture_bits=64 ccall=call "C:\Users\john\Desktop\cmder\vendor\bin\cexec.cmd" cexec="C:\Users\john\Desktop\cmder\vendor\bin\cexec.cmd" clink_architecture=x64 CLINK_COMPLETIONS_DIR=C:\Users\john\Desktop\cmder/vendor/clink-completions/completions clink_dummy_capture_env= CMDER_ALIASES=1 CMDER_CLINK=1 CMDER_CONFIGURED=1 CMDER_CONFIG_DIR=C:\Users\john\Desktop\cmder\config CMDER_INIT_END=23:51:09,70 CMDER_INIT_START=23:51:07,96 CMDER_ROOT=C:\Users\john\Desktop\cmder CMDER_SHELL=cmd CMDER_USER_FLAGS= COLUMNS=142 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=DESKTOP-FV1F7KF ComSpec=C:\Windows\system32\cmd.exe ConEmuANSI=ON ConEmuAnsiLog= ConEmuArgs=/Icon "C:\Users\john\Desktop\cmder\icons\cmder.ico" /title "Cmder" ConEmuArgs2= ConEmuBackHWND=0x000204EC ConEmuBaseDir=C:\Users\john\Desktop\cmder\vendor\conemu-maximus5\ConEmu ConEmuBaseDirShort=C:\Users\john\Desktop\cmder\vendor\conemu-maximus5\ConEmu ConEmuBuild=230724 ConEmuCfgDir=C:\Users\john\Desktop\cmder\vendor\conemu-maximus5 ConEmuConfig= ConEmuDir=C:\Users\john\Desktop\cmder\vendor\conemu-maximus5 ConEmuDrawHWND=0x000204EA ConEmuDrive=C: ConEmuHooks=Enabled ConEmuHWND=0x00060468 ConEmuPalette=Monokai ConEmuPID=3200 ConEmuServerPID=8220 ConEmuTask={cmd::Cmder} ConEmuWorkDir=C:\Users\john\Desktop\cmder ConEmuWorkDrive=C: currenArgu=/setpath debug_output=0 depth=1 DriverData=C:\Windows\System32\Drivers\DriverData ESC= ast_init=0 feFlagName= feNot=false find_query=C:\\Users\\john\\Desktop\\cmder found=1 FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default git_executable=C:\Users\john\Desktop\cmder\vendor\git-for-windows\cmd\git.exe GIT_INSTALL_ROOT=C:\Users\john\Desktop\cmder\vendor\git-for-windows git_locale="C:\Users\john\Desktop\cmder\vendor\git-for-windows\usr\bin\locale.exe" GIT_VERSION_VENDORED=2.45.1.windows.1 HOME=C:\Users\john HOMEDRIVE=C: HOMEPATH=\Users\john LANG=cs_CZ.UTF-8 lib_base=call "C:\Users\john\Desktop\cmder\vendor\lib\lib_base.cmd" lib_console=call "C:\Users\john\Desktop\cmder\vendor\lib\lib_console.cmd" lib_git=call "C:\Users\john\Desktop\cmder\vendor\lib\lib_git.cmd" lib_path=call "C:\Users\john\Desktop\cmder\vendor\lib\lib_path.cmd" lib_profile=call "C:\Users\john\Desktop\cmder\vendor\lib\lib_profile.cmd" LINES=47 LOCALAPPDATA=C:\Users\john\AppData\Local LOGONSERVER=\\DESKTOP-FV1F7KF max_depth=1 nix_tools=1 NUMBER_OF_PROCESSORS=4 OLD_PATH=C:\Users\john\Desktop\cmder\vendor\git-for-windows\cmd;C:\Users\john\Desktop\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Users\john\Desktop\cmder\vendor\conemu-maximus5;C:\Users\john\Desktop\cmder\vendor\conemu-maximus5\ConEmu;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\john\AppData\Local\Microsoft\WindowsApps;C:\Users\john\Desktop\cmder\vendor\git-for-windows\mingw64\bin;C:\Users\john\Desktop\cmder\vendor\git-for-windows\usr\bin;C:\Users\john\Desktop\cmder\vendor\bin OneDrive=C:\Users\john\OneDrive OS=Windows_NT Path=C:\Users\john\Desktop\cmder\vendor\git-for-windows\cmd;C:\Users\john\Desktop\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Users\john\Desktop\cmder\vendor\conemu-maximus5;C:\Users\john\Desktop\cmder\vendor\conemu-maximus5\ConEmu;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\john\AppData\Local\Microsoft\WindowsApps;C:\Users\john\Desktop\cmder\vendor\git-for-windows\mingw64\bin;C:\Users\john\Desktop\cmder\vendor\git-for-windows\usr\bin;C:\Users\john\Desktop\cmder\vendor\bin;C:\Users\john\Desktop\cmder PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC path_position=append PLINK_PROTOCOL=ssh position=append print_debug=if 0 gtr 0 call "C:\Users\john\Desktop\cmder\vendor\lib\lib_console.cmd" debug_output print_error=call "C:\Users\john\Desktop\cmder\vendor\lib\lib_console.cmd" show_error print_verbose=if 0 gtr 0 call "C:\Users\john\Desktop\cmder\vendor\lib\lib_console.cmd" verbose_output print_warning=if 0 gtr 0 call "C:\Users\john\Desktop\cmder\vendor\lib\lib_console.cmd" show_warning PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD PROCESSOR_LEVEL=25 PROCESSOR_REVISION=2100 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SESSIONNAME=Console SVN_SSH=C:\\Users\\john\\Desktop\\cmder\\vendor\\git-for-windows\\bin\\ssh.exe SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\john\AppData\Local\Temp time_init=0 TMP=C:\Users\john\AppData\Local\Temp USERDOMAIN=DESKTOP-FV1F7KF USERDOMAIN_ROAMINGPROFILE=DESKTOP-FV1F7KF USERNAME=john USERPROFILE=C:\Users\john user_aliases=C:\Users\john\Desktop\cmder\config\user_aliases.cmd VENDORED_BUILD=windows.1 VENDORED_MAJOR=2 VENDORED_MINOR=45 VENDORED_PATCH=1 verbose_output=0 windir=C:\Windows
TERM is missing...

@ajtak-angelus
Copy link
Author

Any news? Thanks

@DRSDavidSoft
Copy link
Contributor

Sure, could you please tell me which Linux you are using, and also please enter the printenv command on your Linux machine and post the results as well.

This is because there might be an env variable set on the Linux machine that might be causing this.

Lastly, please open conhost.exe (the Windows Command Prompt) and connect using SSH to the Linux machine. Verify that midnight commander is working as intended. Then open a new conhost.exe and enter SET to dump the environment variables of a non-Cmder Window.

This will help us compare the variables and identify any differences that might be causing this.

Another thing that might be causing the issue might be the /etc config files that might have either been customized by the Linux flavor you are using, or modified by yourself.

If you can further more connect to a different Linux host, such as a VM or even Microsoft WSL to see if the same issue still exist, that would also be helpful.

With this steps we will hopefully be able to identify the problem and solve it.

@ajtak-angelus
Copy link
Author

ajtak-angelus commented Oct 1, 2024

Hey. Hey,
if I start conhost, mc behaves normally.
And I used ssh from \cmder\vendor\git-for-windows\usr\bin
I use the Debian distribution everywhere. So I tried Ubuntu and the same problem.

SET from other PC:
ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\user\AppData\Roaming CLIENTNAME=PC CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=pc ComSpec=C:\Windows\system32\cmd.exe DriverData=C:\Windows\System32\Drivers\DriverData FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default HOMEDRIVE=C: HOMEPATH=\Users\user JAVA_HOME=C:\Program Files\Zulu\zulu-17-jre\ LOCALAPPDATA=C:\Users\user\AppData\Local LOGONSERVER=\\pc NUMBER_OF_PROCESSORS=32 OneDrive=C:\Users\user\OneDrive OS=Windows_NT Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\user\AppData\Local\Microsoft\WindowsApps; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD PROCESSOR_LEVEL=25 PROCESSOR_REVISION=2100 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SystemDrive=C: Systemuser=C:\Windows TEMP=C:\Users\user\AppData\Local\Temp TMP=C:\Users\user\AppData\Local\Temp USERDOMAIN=pc USERDOMAIN_ROAMINGPROFILE=pc USERNAME=user USERPROFILE=C:\Users\user VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\ windir=C:\Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 ConEmu Upstream issue in ConEmu. 👆 Git Upstream issue in Git for Windows. 🐛 Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants