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

(v2) fix: make grapheme clustering opt-in #1194

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

aymanbagabas
Copy link
Member

This commit changes the behavior of grapheme clustering to be opt-in instead of opt-out. This is because some terminals like Apple Terminal don't support DECRQM and DECRPM, which are required for querying and setting the grapheme clustering state.

Apple Terminal, instead, replies with a p character when querying the grapheme clustering state, which is not a valid response and breaks the program output.

image

Notice the p in the first line

This commit changes the behavior of grapheme clustering to be opt-in
instead of opt-out. This is because some terminals like Apple Terminal
don't support DECRQM and DECRPM, which are required for querying and
setting the grapheme clustering state.

Apple Terminal, instead, replies with a `p` character when querying the
grapheme clustering state, which is not a valid response and breaks the
program output.
Copy link
Member

@meowgorithm meowgorithm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's cool that the feature exists in an opt-in fashion, at least. LGTM.

@aymanbagabas aymanbagabas merged commit 43b11c3 into v2-exp Oct 23, 2024
36 of 38 checks passed
@aymanbagabas aymanbagabas deleted the v2-no-grapheme-clustering branch October 23, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants