Far Manager broken with commit 6742965bb8 #15917

Closed
opened 2026-01-31 04:52:09 +00:00 by claunia · 10 comments
Owner

Originally created by @igorkuzuro on GitHub (Nov 18, 2021).

Windows Terminal version

Dev

Windows build number

Microsoft Windows [Version 10.0.22494.1000]

Other Software

Far Manager 3.0 (v3.0.5919.2537 and previous builds)

Steps to reproduce

Just open Far Manager in Windows Terminal

Expected Behavior

Expected this normal Far manager display:

image

Actual Behavior

But...

image

Originally created by @igorkuzuro on GitHub (Nov 18, 2021). ### Windows Terminal version Dev ### Windows build number Microsoft Windows [Version 10.0.22494.1000] ### Other Software Far Manager 3.0 (v3.0.5919.2537 and previous builds) ### Steps to reproduce Just open Far Manager in Windows Terminal ### Expected Behavior Expected this normal Far manager display: ![image](https://user-images.githubusercontent.com/1778999/142399875-1b4725aa-0127-43b5-b6a3-af220faf7282.png) ### Actual Behavior But... ![image](https://user-images.githubusercontent.com/1778999/142398448-8d5f8e80-ad6c-42ef-a834-3f6d4cda0955.png)
Author
Owner

@zadjii-msft commented on GitHub (Nov 18, 2021):

6742965bb8 - hmm. Was Conpty using the C1 escape to format it's sequences? Is Far manager using that one maybe? Hmmm. @igorkuzuro Does this repro with an OpenConsole that's built from that commit as well? Or is this only a Terminal issue. Might narrow things down.

@zadjii-msft commented on GitHub (Nov 18, 2021): 6742965bb89f1391f4ac036e52bcf68f7db305f6 - hmm. Was Conpty using the C1 escape to format it's sequences? Is Far manager using that one maybe? Hmmm. @igorkuzuro Does this repro with an OpenConsole that's built from that commit as well? Or is this only a Terminal issue. Might narrow things down.
Author
Owner

@igorkuzuro commented on GitHub (Nov 18, 2021):

6742965 - hmm. Was Conpty using the C1 escape to format it's sequences? Is Far manager using that one maybe? Hmmm. @igorkuzuro Does this repro with an OpenConsole that's built from that commit as well? Or is this only a Terminal issue. Might narrow things down.

Of course I tried Terminal without this commit - everything works as expected... now will try OpenConsole with this commit

@igorkuzuro commented on GitHub (Nov 18, 2021): > [6742965](https://github.com/microsoft/terminal/commit/6742965bb89f1391f4ac036e52bcf68f7db305f6) - hmm. Was Conpty using the C1 escape to format it's sequences? Is Far manager using that one maybe? Hmmm. @igorkuzuro Does this repro with an OpenConsole that's built from that commit as well? Or is this only a Terminal issue. Might narrow things down. Of course I tried Terminal without this commit - everything works as expected... now will try OpenConsole with this commit
Author
Owner

@j4james commented on GitHub (Nov 18, 2021):

(╯°□°)╯︵ ┻━┻

We can't win here. It looks like the same person that demanded we remove support for C1 controls was also responsible for making FarManager depend on C1 controls (c04740947d).

@j4james commented on GitHub (Nov 18, 2021): (╯°□°)╯︵ ┻━┻ We can't win here. It looks like the same person that demanded we remove support for C1 controls was also responsible for making FarManager depend on C1 controls (https://github.com/FarGroup/FarManager/commit/c04740947d79eacba6ab039d3803dd49dcd153bf).
Author
Owner

@zadjii-msft commented on GitHub (Nov 18, 2021):

Yo @alabuzhev, any idea what we should do here?

The Far commit is from 2019, so they've shipped with that for a while now.

I'm linking in #10310 for more context

@zadjii-msft commented on GitHub (Nov 18, 2021): Yo @alabuzhev, any idea what we _should_ do here? The Far commit is from 2019, so they've shipped with that for a while now. I'm linking in #10310 for more context
Author
Owner

@j4james commented on GitHub (Nov 18, 2021):

It's also worth mentioning that this doesn't fail for an out-of-the-box install of FarManager as far as I can see. You've got to go into the Interface Settings and enable Use Virtual Terminal for rendering. But I'm assuming there may be a lot of people with that option already set.

@j4james commented on GitHub (Nov 18, 2021): It's also worth mentioning that this doesn't fail for an out-of-the-box install of FarManager as far as I can see. You've got to go into the _Interface Settings_ and enable _Use Virtual Terminal for rendering_. But I'm assuming there may be a lot of people with that option already set.
Author
Owner

@alabuzhev commented on GitHub (Nov 18, 2021):

Hmm, interesting.
So at some point \x9b became a control character and broken our output in some cases.
We replaced it with something else, but it also made it into the renderer instead of \033[ (I don't really remember why, probably it's leftovers from my experiments with understanding its meaning).

Then more characters became control, and now none of them, and that doesn't work anymore.

As @j4james mentioned, VT renderer is off by default, so it's probably not a big issue. We will fix it on our side and, since we release more often than WT, this hopefully won't be a problem anymore when the next WT version is released.

@alabuzhev commented on GitHub (Nov 18, 2021): Hmm, interesting. So at some point `\x9b` became a control character and broken our output in some cases. We replaced it with something else, but it also made it into the renderer instead of `\033[` (I don't really remember why, probably it's leftovers from my experiments with understanding its meaning). Then more characters became control, and now none of them, and that doesn't work anymore. As @j4james mentioned, VT renderer is off by default, so it's probably not a big issue. We will fix it on our side and, since we release more often than WT, this hopefully won't be a problem anymore when the next WT version is released.
Author
Owner

@igorkuzuro commented on GitHub (Nov 18, 2021):

Hmm, interesting. So at some point \x9b became a control character and broken our output in some cases. We replaced it with something else, but it also made it into the renderer instead of \033[ (I don't really remember why, probably it's leftovers from my experiments with understanding its meaning).

Then more characters became control, and now none of them, and that doesn't work anymore.

As @j4james mentioned, VT renderer is off by default, so it's probably not a big issue. We will fix it on our side and, since we release more often than WT, this hopefully won't be a problem anymore when the next WT version is released.

Yes, I don't remember when and why I start using VT renderer... when this option is off everything work as expected.

@igorkuzuro commented on GitHub (Nov 18, 2021): > Hmm, interesting. So at some point `\x9b` became a control character and broken our output in some cases. We replaced it with something else, but it also made it into the renderer instead of `\033[` (I don't really remember why, probably it's leftovers from my experiments with understanding its meaning). > > Then more characters became control, and now none of them, and that doesn't work anymore. > > As @j4james mentioned, VT renderer is off by default, so it's probably not a big issue. We will fix it on our side and, since we release more often than WT, this hopefully won't be a problem anymore when the next WT version is released. Yes, I don't remember when and why I start using VT renderer... when this option is off everything work as expected.
Author
Owner

@alabuzhev commented on GitHub (Nov 18, 2021):

Fixed in FarGroup/FarManager@54e95ad5c0

@alabuzhev commented on GitHub (Nov 18, 2021): Fixed in FarGroup/FarManager@54e95ad5c08bb2ac8d5cf6ed78992c4b92624918
Author
Owner

@DHowett commented on GitHub (Nov 19, 2021):

Thanks! I'll close this one out as external (heh, as a /duplicate of 54e95ad5c0 which admittedly is a commit...) but keep an eye on it. @Igorkuzuro, thanks for running nightly/dev builds! We should really make them available to people. 😄

@DHowett commented on GitHub (Nov 19, 2021): Thanks! I'll close this one out as external (heh, as a /duplicate of https://github.com/FarGroup/FarManager/commit/54e95ad5c08bb2ac8d5cf6ed78992c4b92624918 which admittedly is a commit...) but keep an eye on it. @Igorkuzuro, thanks for running nightly/dev builds! We should really make them available to people. :smile:
Author
Owner

@ghost commented on GitHub (Nov 19, 2021):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Nov 19, 2021): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15917