Detect non-printable/printable characters
Hywan opened this issue · 2 comments
Hywan commented
Would be specifically useful for hoaproject/Console#16, hoaproject/Console#17 and hoaproject/Console#18.
nicolas-grekas commented
I think this can help:
http://stackoverflow.com/questions/3634627/how-to-know-the-preferred-display-width-in-columns-of-unicode-characters
Especially http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
Not sure about mb_strwidth behavior but it could help also?
Hywan commented
Good idea to use the string width… Will take a look at that, thanks!