[question] Maybe a bug about msys shell & btm #18140

Closed
opened 2026-01-31 06:04:51 +00:00 by claunia · 8 comments
Owner

Originally created by @Freed-Wu on GitHub (Aug 10, 2022).

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?

Originally created by @Freed-Wu on GitHub (Aug 10, 2022). <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?
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Author-Feedback labels 2026-01-31 06:04:52 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 10, 2022):

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 commented on GitHub (Aug 10, 2022): 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!
Author
Owner

@Freed-Wu commented on GitHub (Aug 11, 2022):

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 commented on GitHub (Aug 11, 2022): 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](https://user-images.githubusercontent.com/32936898/183842688-74d4e124-101b-450c-a30b-ed8d06c0296f.png) Expected: Work normaly, no strange character
Author
Owner

@zadjii-msft commented on GitHub (Aug 11, 2022):

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 commented on GitHub (Aug 11, 2022): 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.
Author
Owner

@j4james commented on GitHub (Aug 12, 2022):

@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 commented on GitHub (Aug 12, 2022): @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?
Author
Owner

@zadjii-msft commented on GitHub (Aug 12, 2022):

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 commented on GitHub (Aug 12, 2022): 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
Author
Owner

@Freed-Wu commented on GitHub (Aug 12, 2022):

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 commented on GitHub (Aug 12, 2022): > 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?
Author
Owner

@carlos-zamora commented on GitHub (Mar 1, 2023):

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?

Hey! Sorry for the radio silence. Yes, try btm elf in wsl. We just want to compare it to get a good idea of what's going on. Thanks!

@carlos-zamora commented on GitHub (Mar 1, 2023): > > 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? Hey! Sorry for the radio silence. Yes, try `btm elf` in wsl. We just want to compare it to get a good idea of what's going on. Thanks!
Author
Owner

@zadjii-msft commented on GitHub (Mar 27, 2023):

Hey all, our bot's been acting up the last few weeks. This issue has been marked as requiring author feedback, but hasn't had any activity in the last week. We're gonna close it to tidy up. Feel free to continue the discssion in the comments - we can always reopen if new information comes to light. Thanks!

@zadjii-msft commented on GitHub (Mar 27, 2023): Hey all, our bot's been acting up the last few weeks. This issue has been marked as requiring author feedback, but hasn't had any activity in the last week. We're gonna close it to tidy up. Feel free to continue the discssion in the comments - we can always reopen if new information comes to light. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18140