You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of course it's a feature, and a great one. But at times, I'd like to be able to disable it.
The feature works great when there is some rtl text mixed inside an otherwise ltr paragraph, however, in vi, a line that either starts or ends with rtl` text in it, be indented to the right, or worse - part of the line will be indented to the right and and some to the left. When split windows are involved, it gets really difficult to handle.
Here is a screenshot, see line 2 and 3:
I doubt mintty can do anything to handle it better, but an option to runt mintty without the bidi feature enabled would be helpful
In theory, I see two possibilities to handle RTL in a context-dependent way that could meet the use case:
Support DEC margin mode and apply RTL only within current margins.
Support the Unicode RTL direction control characters.
In both cases, however, your application would need to support the mechanism, too, to achieve the desired effect (e.g. draw each panel with respective margins set).
In my own text editor (MinEd) I had the same problem when opening a menu that overlays a bidi line. This was solved by clearing such lines before drawing the menu.
About a global option to disable bidi, I'm still hesitating whether to consider that a good idea. I acknowledge, though, that putty (from which mintty was once derived) has such an option. Maybe some more discussion or nagging is needed...
Both these possibilities seem like nice additions, but as you mention yourself, they cannot guaranty a working solution.
Bidi is indeed a nice feature for a terminal emulator, but since it often ends up being more trouble than it is worth, I think it's a god idea to allow users to disable it at will. And, indeed, Putty, too, provides an option to disable. And, in my opinion, for a good reason.
As I don't want people to accidentally misconfigure mintty with respect to its default behaviour,
I'm considering a command-line-only option, like --disable-bidi
or (shorter?) --nobidi.
While implementing partial support for bidi markers, it became apparent that this is not sufficient to control absolute positioning. A switching sequence may be added.
Activity
mintty commentedon Sep 20, 2016
No. “It’s not a bug, it’s a feature.”
Without this feature, you should probably not try to display RTL anyway, or does vim have its own RTL approach?
mintty commentedon Sep 21, 2016
Actually, I don't even see any issue with either tmux or vim. All looks fine here for me. What do you mean by "messes up"?
TxHawks commentedon Sep 22, 2016
Thanks for the quick reply.
Of course it's a feature, and a great one. But at times, I'd like to be able to disable it.
The feature works great when there is some
rtltext mixed inside an otherwiseltrparagraph, however, invi, a line that either starts or ends with rtl` text in it, be indented to the right, or worse - part of the line will be indented to the right and and some to the left. When split windows are involved, it gets really difficult to handle.Here is a screenshot, see line 2 and 3:

I doubt mintty can do anything to handle it better, but an option to runt mintty without the bidi feature enabled would be helpful
mintty commentedon Sep 22, 2016
In theory, I see two possibilities to handle RTL in a context-dependent way that could meet the use case:
In both cases, however, your application would need to support the mechanism, too, to achieve the desired effect (e.g. draw each panel with respective margins set).
In my own text editor (MinEd) I had the same problem when opening a menu that overlays a bidi line. This was solved by clearing such lines before drawing the menu.
About a global option to disable bidi, I'm still hesitating whether to consider that a good idea. I acknowledge, though, that putty (from which mintty was once derived) has such an option. Maybe some more discussion or nagging is needed...
TxHawks commentedon Sep 25, 2016
Both these possibilities seem like nice additions, but as you mention yourself, they cannot guaranty a working solution.
Bidi is indeed a nice feature for a terminal emulator, but since it often ends up being more trouble than it is worth, I think it's a god idea to allow users to disable it at will. And, indeed, Putty, too, provides an option to disable. And, in my opinion, for a good reason.
mintty commentedon Sep 26, 2016
As I don't want people to accidentally misconfigure mintty with respect to its default behaviour,
I'm considering a command-line-only option, like
--disable-bidior (shorter?)
--nobidi.TxHawks commentedon Sep 26, 2016
+1 for --nobidi
option --nobidi / --nortl to disable bidi mode (RTL support) (#592)
mintty commentedon Oct 7, 2016
Released in 2.6.2.
TxHawks commentedon Oct 7, 2016
Thanks!
mintty commentedon Apr 12, 2017
While implementing partial support for bidi markers, it became apparent that this is not sufficient to control absolute positioning. A switching sequence may be added.
option and escape sequences to disable bidi (#592, #392, ~#605)
mintty commentedon Apr 13, 2017
Released 2.7.6.
fix bidi display while showing other screen with Bidi=1 (#592, ~#392, ~…
mintty commentedon May 19, 2017
Released 2.7.7.