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

better spanning of ANSI control sequences from when finding graphemes #115

Closed

Conversation

aryairani
Copy link

@aryairani aryairani commented Mar 18, 2019

Per #114, I added a more detailed span for ANSI sequences, based on a definition from Wikipedia. :)
So this will look for ANSI control sequences (not just those ending in '\STX') when grouping characters into graphemes, and then filters out '\ESC' graphemes when calculating length for column alignment.

base:

image

PR:

image

What do you think? Thanks!

@aryairani
Copy link
Author

aryairani commented Jul 23, 2019

haskeline master (v0.8.0.0 wip) builds ok, but doesn't merge cleanly with my rendering fixes.

…pletions

One failing test, but guessing don't care:
| ### Failure in: 0:interaction:4:history encoding:2
| tests/RunTTY.hs:106
| expected: ["abc??x?x?"]
|  but got: ["abc\206\177\239\191\189x\239\191\189x\239\191\189"]
| Cases: 26  Tried: 26  Errors: 0  Failures: 1
@aryairani aryairani changed the base branch from haskeline-0.7 to master July 23, 2019 22:37
@aryairani aryairani closed this Jul 23, 2019
@aryairani aryairani reopened this Jul 23, 2019
aryairani pushed a commit to unisonweb/unison that referenced this pull request Jun 15, 2022
@aryairani
Copy link
Author

I guess this has been resolved independently.

@aryairani aryairani closed this Jun 15, 2022
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