terminal icon indicating copy to clipboard operation
terminal copied to clipboard

[question] Maybe a bug about msys shell

Open Freed-Wu opened this issue 3 years ago • 0 comments

https://github.com/ClementTsang/bottom/issues/747#issuecomment-1210287764

Many programs cannot work normally in mintty/msys shell but can work normally in windows terminal/msys shell. The exception is for that btm, except fullscreen, it still exists other problems which windows terminal cannot fix. So maybe it should be reported to windows terminal?

Freed-Wu avatar Aug 10 '22 07:08 Freed-Wu

Okay I'm maybe having a hard time parsing that other thread you've linked. Can you give me some specific repro steps, with what you think should be happening, and what happens instead in Windows Terminal/? Thanks!

zadjii-msft avatar Aug 10 '22 17:08 zadjii-msft

The step to reproduce:

  1. According to https://www.msys2.org/docs/terminals/, Use Windows Terminal/msys2 (MINGW64)
  2. pacman -S mingw-w64-bottom
  3. btm
  4. move the cursor

Result:

img

Expected:

Work normaly, no strange character

Freed-Wu avatar Aug 11 '22 04:08 Freed-Wu

Hmm. I bet this is a mismatch between the expected width of a braille character, and how big we actually render it. I suspect we've got a dupe laying around here for this.

#6987 is probably a similar root cause, tbh.

zadjii-msft avatar Aug 11 '22 11:08 zadjii-msft

@zadjii-msft I don't think it's a braille character issue. Have a look at the bottom left corner of that screenshot. Notice the ;87H? That looks to me like a CUP sequence that somehow got terminated early with the remaining characters being output as plain text. That shouldn't be possible in any normal scenario.

I remember in the past we had issues where the problem was msys or cygwin were trying to handle the VT sequence themselves instead of passing them on to the terminal. Is it possible it's something like that again?

j4james avatar Aug 11 '22 23:08 j4james

Oooh, good Where's Waldo-ing there. @Freed-Wu could you compare with btm for WSL? That would get the msys runtime out of the way. That's an idea at least

zadjii-msft avatar Aug 12 '22 11:08 zadjii-msft

could you compare with btm for WSL? That would get the msys runtime out of the way. That's an idea at least

I only use msys2 and have not learned about wsl too much. To the best of my knowledge, the former is a platform to run win32 exe and the latter is a simulator/virtual machine (not sure) to run linux elf? I guess your meaning is to run btm elf in wsl not run btm.exe in wsl?

Freed-Wu avatar Aug 12 '22 13:08 Freed-Wu