We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Inside the pretty.ml module we're using String.length a lot, when we should really be using the display width of the string.
pretty.ml
String.length
e.g.
# String.length "😄";; - : int = 4
when it should only really be 2.
The text was updated successfully, but these errors were encountered:
This is the equivalent in Haskell: https://hackage.haskell.org/package/vty-5.38/docs/Graphics-Text-Width.html (https://github.com/jtdaugherty/vty)
It's a wrapper around a C library. Now, how do we do that in Ocaml...
wcwidth
wcswidth
Sorry, something went wrong.
68bfc69
No branches or pull requests
Inside the
pretty.ml
module we're usingString.length
a lot, when we should really be using the display width of the string.e.g.
when it should only really be 2.
The text was updated successfully, but these errors were encountered: