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

Enable 'termbidi' for gnome-terminal 3.34 #5023

Open
hedayat opened this issue Oct 6, 2019 · 3 comments
Open

Enable 'termbidi' for gnome-terminal 3.34 #5023

hedayat opened this issue Oct 6, 2019 · 3 comments

Comments

@hedayat
Copy link

hedayat commented Oct 6, 2019

Gnome terminal in gnome 3.34 supports bidi text rendering/typing. It'd be nice if 'termbidi' is enabled on it automatically.

@brammool
Copy link
Contributor

brammool commented Oct 7, 2019 via email

@hedayat
Copy link
Author

hedayat commented Oct 7, 2019

It always works. Or... at least in Fedora it is enabled by default as far as I see (I've not done any special configuration).

But I don't know how to check the version or if it is possible at all; but I hope so. :( ...

OK, I found it! It is actually not about gnome-terminal alone, it is about any VTE based terminal (I'm not aware of any other though :P). Anyway, you can check VTE_VERSION environment variable.
My VTE_VERSION is 5800, (vte version 0.58.0). But according to https://mail.gnome.org/archives/gnome-announce-list/2019-July/msg00003.htmlhttps://mail.gnome.org/archives/gnome-announce-list/2019-July/msg00003.html, it should work on vte >= 0.57.3, which is probably VTE_VERSION >= 5730.

@avidseeker
Copy link
Contributor

More generally, I think this feature request falls under the title of "Automatic detection for termbidi". Vim Arabic shaping support via :set arabicshape is currently enabled by default regardless of the terminal. This causes the problems explained in #9761.

It made sense to set this option the default when most terminals did not have shaping support and it was up to the console applications to provide proper rendering. Currently, however, most terminals already support Unicode shaping, so it would be better for Vim to be smarter instead of assuming the default.

I think there should be some library function (perhaps wcwidth?) that could inform Vim whether the terminal has letter shaping capabilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants